From 45d1551083a5f23383da9b06e6287fb49341d173 Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 20 Oct 2023 11:03:59 +0100 Subject: [PATCH] PR feedback --- .../_components/Component/ComponentSettingsPanel.svelte | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ComponentSettingsPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ComponentSettingsPanel.svelte index 400bafa588..7eb71ac826 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ComponentSettingsPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ComponentSettingsPanel.svelte @@ -14,6 +14,7 @@ } from "builderStore/dataBinding" import { ActionButton } from "@budibase/bbui" import { capitalise } from "helpers" + import { lowerCase } from "lodash" const onUpdateName = async value => { try { @@ -55,12 +56,14 @@ value={title} {title} placeholder={getComponentText(componentInstance)} - on:change={e => { - onUpdateName(e.target.value) - if (e.target === document.activeElement) { + on:keypress={e => { + if (e.key.toLowerCase() === "enter") { e.target.blur() } }} + on:change={e => { + onUpdateName(e.target.value) + }} />