mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
d3cebeec50
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
10 lines
258 B
JavaScript
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();
|
|
}
|
|
}
|