Skip to content

Commit

Permalink
Support "delteWhenEmpty" property of box
Browse files Browse the repository at this point in the history
  • Loading branch information
joswarmer committed Dec 4, 2024
1 parent c65a137 commit 9e9246f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core-svelte/src/lib/components/TextComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
* It is called from the box.
*/
export async function setFocus(): Promise<void> {
console.log("TextComponent.setFocus "+ id + " input is there: " + !!inputElement);
LOGGER.log("TextComponent.setFocus "+ id + " input is there: " + !!inputElement);
if (!!inputElement) {
inputElement.focus();
} else {
Expand Down Expand Up @@ -424,7 +424,7 @@
setInputWidth();
LOGGER.log(`onInput text is ${text} value '${inputElement.value}'`)
if (inputElement.value === "") {
editor.deleteTextBox(box, false)
editor.deleteTextBox(box, box.deleteWhenEmpty)
}
}
Expand Down

0 comments on commit 9e9246f

Please sign in to comment.