2021-08-26 19:19:00 +03:00
|
|
|
{{#if @extra.inputIcon}}
|
|
|
|
{{svg-jar @extra.inputIcon class=@extra.inputIconClass}}
|
|
|
|
{{/if}}
|
2023-01-04 12:39:32 +03:00
|
|
|
{{!-- template-lint-disable no-autofocus-attribute --}}
|
2021-08-26 19:19:00 +03:00
|
|
|
<input
|
|
|
|
{{did-insert this.registerInput}}
|
|
|
|
{{did-update this.closeWhenEmpty @select.results}}
|
|
|
|
{{on "input" this.handleInput}}
|
|
|
|
{{on "keydown" this.handleKeydown}}
|
|
|
|
{{on "keyup" this.handleKeyup}}
|
|
|
|
{{on "focus" this.handleFocus}}
|
|
|
|
{{on "blur" this.handleBlur}}
|
|
|
|
class="gh-input-with-select-input"
|
|
|
|
type={{or @extra.inputType "text"}}
|
|
|
|
autofocus={{@extra.autofocus}}
|
|
|
|
autocomplete="off"
|
|
|
|
autocorrect="off"
|
|
|
|
autocapitalize="off"
|
|
|
|
value={{@extra.value}}
|
|
|
|
name="selectSearchTerm" {{!-- contains "search" to prevent Safari showing autocomplete --}}
|
|
|
|
spellcheck="false"
|
|
|
|
placeholder={{@placeholder}}
|
|
|
|
disabled={{@select.disabled}}
|
2023-01-04 12:39:32 +03:00
|
|
|
aria-label={{@extra.label}}
|
2021-08-26 19:19:00 +03:00
|
|
|
>
|