Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Component from 'ember-component';
- import jQuery from 'jquery';
- import { getParent } from '../utils/dom';
- import { next } from 'ember-runloop';
- export default Component.extend({
- tagName: '',
- didInsertElement() {
- this._super(...arguments);
- next(() => {
- jQuery(getParent(this)).find('[contenteditable=true],:input').first().focus();
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement