Names refactoring

This commit is contained in:
barsdeveloper
2022-12-10 14:48:27 +01:00
parent 153f329bdd
commit fffe3f7ad1
18 changed files with 159 additions and 89 deletions

View File

@@ -6,13 +6,13 @@ import ITemplate from "./ITemplate"
export default class InputTemplate extends ITemplate {
#focusHandler = () => {
this.element.blueprint.dispatchEditTextEvent(true)
this.element.blueprint.acknowledgeEditText(true)
if (this.element.selectOnFocus) {
getSelection().selectAllChildren(this.element)
}
}
#focusoutHandler = () => {
this.element.blueprint.dispatchEditTextEvent(false)
this.element.blueprint.acknowledgeEditText(false)
document.getSelection()?.removeAllRanges() // Deselect eventually selected text inside the input
}
#inputSingleLineHandler =