Allow unlisten events in case of text edit

This commit is contained in:
barsdeveloper
2022-04-02 13:47:16 +02:00
parent e901932953
commit 6ffdcbccab
11 changed files with 1380 additions and 1403 deletions

View File

@@ -20,8 +20,8 @@ export default class StringPinTemplate extends PinTemplate {
return html`
<span class="ueb-pin-input">
<span class="ueb-pin-input-content" role="textbox" contenteditable="true"
onfocus="_ => this.closest('ueb-blueprint').editText = true"
onfocusout="_ => this.closest('ueb-blueprint').editText = false"
onfocus="this.closest('ueb-blueprint')?.dispatchEditTextEvent(true)"
onfocusout="this.closest('ueb-blueprint')?.dispatchEditTextEvent(false)"
></span>
</span>
`