Ghost/ghost/admin/app/components/modals/search.js
Kevin Ansfield d3cebeec50 Refactored search modal
refs https://github.com/TryGhost/Team/issues/559

- changed modal to use new modal pattern
- fixes padding jump when opening due to improved animation behaviour not using duplicated elements
2022-01-11 17:59:48 +00:00

10 lines
258 B
JavaScript

import Component from '@glimmer/component';
import {action} from '@ember/object';
export default class SearchModalComponent extends Component {
@action
focusFirstInput(mouseEvent) {
mouseEvent.target.querySelector('input')?.focus();
}
}