Ghost/ghost/admin/app/components/gh-input-with-select/trigger.hbs
Kevin Ansfield ea9c8c03fe
Update dependency ember-template-lint to v5.3.0 (#16062)
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
2023-01-04 09:39:32 +00:00

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}}
>