PR feedback

This commit is contained in:
Dean 2023-10-20 11:03:59 +01:00
parent 7de000e5df
commit 45d1551083
1 changed files with 6 additions and 3 deletions

View File

@ -14,6 +14,7 @@
} from "builderStore/dataBinding" } from "builderStore/dataBinding"
import { ActionButton } from "@budibase/bbui" import { ActionButton } from "@budibase/bbui"
import { capitalise } from "helpers" import { capitalise } from "helpers"
import { lowerCase } from "lodash"
const onUpdateName = async value => { const onUpdateName = async value => {
try { try {
@ -55,12 +56,14 @@
value={title} value={title}
{title} {title}
placeholder={getComponentText(componentInstance)} placeholder={getComponentText(componentInstance)}
on:change={e => { on:keypress={e => {
onUpdateName(e.target.value) if (e.key.toLowerCase() === "enter") {
if (e.target === document.activeElement) {
e.target.blur() e.target.blur()
} }
}} }}
on:change={e => {
onUpdateName(e.target.value)
}}
/> />
</span> </span>
<span slot="panel-header-content"> <span slot="panel-header-content">