open-nomad/ui/app/modifiers/autofocus.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
191 B
JavaScript
Raw Normal View History

import { modifier } from 'ember-modifier';
export default modifier(function autofocus(element, _positional, named) {
const { ignore } = named;
if (ignore) return;
element.focus();
});