Input cleanup

This commit is contained in:
barsdeveloper
2022-11-11 20:31:17 +01:00
parent 18bf858db3
commit 48065a4777
12 changed files with 91 additions and 112 deletions

View File

@@ -12,6 +12,12 @@ export default class InputElement extends IElement {
converter: Utility.booleanConverter,
reflect: true,
},
selectOnFocus: {
type: Boolean,
attribute: "data-select-focus",
converter: Utility.booleanConverter,
reflect: true,
},
blurOnEnter: {
type: Boolean,
attribute: "data-blur-enter",
@@ -23,6 +29,7 @@ export default class InputElement extends IElement {
constructor() {
super({}, new InputTemplate())
this.singleLine = false
this.selectOnFocus = true
this.blurOnEnter = true
}
}