Ghost/ghost/admin/app/templates/components/gh-search-input-trigger.hbs
Kevin Ansfield 9ed5aad186 Flatten nested components (#854)
no issue
- the upcoming Module Unification re-organisation in Ember will no longer support nested components
- this PR pre-emptively moves our usage of nested components into a flat file structure
2017-09-11 14:41:17 +07:00

13 lines
661 B
Handlebars

<div class="ember-power-select-search" onmousedown={{action "captureMouseDown"}}>
<input type="search" autocomplete="off"
autocorrect="off" autocapitalize="off"
value={{if extra.labelPath (get selected extra.labelPath) selected}}
spellcheck="false" role="combobox"
placeholder={{placeholder}}
oninput={{action 'search' value="target.value"}}
onmousedown={{action "captureMouseDown"}}
onkeydown={{action "handleKeydown"}}
onblur={{action "resetInput"}}>
<button class="gh-nav-search-button" {{action "focusInput"}}>{{inline-svg "search"}}<span class="sr-only">Search</span></button>
</div>