PR feedback
This commit is contained in:
parent
7de000e5df
commit
45d1551083
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue