ui: add input as event for text form field (#18563)

* add input as event for form field

* fix event typo, lowercase u
This commit is contained in:
claire bontempo
2023-01-04 12:36:03 -08:00
committed by GitHub
parent 1475ffe740
commit a83a20104b

View File

@@ -302,8 +302,9 @@
autocomplete="off"
spellcheck="false"
value={{or (get @model this.valuePath) @attr.options.defaultValue}}
onchange={{this.onChangeWithEvent}}
onkeyup={{this.handleKeyUp}}
{{on "input" this.onChangeWithEvent}}
{{on "change" this.onChangeWithEvent}}
{{on "keyup" this.handleKeyUp}}
class="input {{if this.validationError 'has-error-border'}} has-bottom-margin-m"
maxLength={{@attr.options.characterLimit}}
/>