Ghost/ghost/admin/lib/koenig-editor/addon/templates/components/koenig-link-input.hbs
Kevin Ansfield 0c35edd372 🐛 Koenig - Fixed Safari scrolling to bottom of post when using link input
refs https://github.com/TryGhost/Ghost/issues/9724
- `autofocus="true"` in Safari was overriding the custom focus method which keeps the scroll position locked
2018-07-18 12:54:09 +01:00

14 lines
441 B
Handlebars

<input
placeholder="Enter url"
value={{href}}
class="kg-link-input pa2 pr6 mih-100 ba br3 shadow-2 f8 lh-heading tracked-2 outline-0 b--blue h10 nudge-top--8"
oninput={{action (mut href) value="target.value"}}
onkeydown={{action "inputKeydown"}}
/>
{{#if href}}
<button class="kg-input-bar-close" type="button" {{action "clear"}}>
{{svg-jar "close" class="ih2 stroke-midlightgrey-l2"}}
</button>
{{/if}}