mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
ea9c8c03fe
refs https://github.com/TryGhost/Ghost/pull/15550 Pulled out of the rolled up node+ember-js+ember-template rollup linter update PR as it required fairly extensive changes. - bumped package - renamed `no-down-event-binding` to `no-pointer-down-event-binding` - disabled `no-pointer-down-event-binding` rule - disabled `no-triple-curlies` rule - ran `yarn lint:hbs --fix` - updated integration tests to match Octane syntax - fixed various one-off errors - updated .lint-todo
25 lines
862 B
Handlebars
25 lines
862 B
Handlebars
{{#if @extra.inputIcon}}
|
|
{{svg-jar @extra.inputIcon class=@extra.inputIconClass}}
|
|
{{/if}}
|
|
{{!-- template-lint-disable no-autofocus-attribute --}}
|
|
<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}}
|
|
aria-label={{@extra.label}}
|
|
> |