PR feedback
This commit is contained in:
parent
7de000e5df
commit
45d1551083
|
@ -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)
|
||||
}}
|
||||
/>
|
||||
</span>
|
||||
<span slot="panel-header-content">
|
||||
|
|
Loading…
Reference in New Issue