Skip to content

Instantly share code, notes, and snippets.

handleCompositionEnd() {
Ember.run.next(() => {
this.set('isComposing', false);
});
}
import Ember from 'ember';
export default Ember.Component.extend({
isComposing: false,
didInsertElement(...args) {
this._super(...args);
this.$().on(`compositionstart.${this.elementId}`, e => this.handleCompositionStart(e));
this.$().on(`compositionend.${this.elementId}`, e => this.handleCompositionEnd(e));

Keybase proof

I hereby claim:

  • I am jefflloyd on github.
  • I am fungah (https://keybase.io/fungah) on keybase.
  • I have a public key ASAnMHQKtVSsZJn2LN2o5knbKXTMAVsZoU8wHZ5A3EFDEwo

To claim this, I am signing this object: