Ghost/ghost/admin/app/components/modals/search.js

10 lines
249 B
JavaScript
Raw Normal View History

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