Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
export default Ember.Component.extend({
attributeBindings: ['contenteditable'],
contenteditable: true,
focusIn() {console.log('child focusIn');},
setFocus() {console.log('child setFocus'); this.$().focus();},
eventPasser: Ember.Object.extend(Ember.Evented).create({}),
init() {
this._super();
import Ember from 'ember';
export default Ember.Component.extend({
attributeBindings: ['contenteditable'],
contenteditable: true,
setFocus() {console.log('child setFocus'); this.$().focus();},
init() {
this._super();
this.set('eventPasser.focus', () => this.setFocus());
}