Skip to content
This repository was archived by the owner on Apr 5, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions addon/components/select-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,11 +675,15 @@ export default Ember.Component.extend(
},

focusIn: function() {
return this.set('hasFocus', true);
Ember.run.schedule('actions', () => {
this.set('hasFocus', true);
});
},

focusOut: function() {
return this.set('hasFocus', false);
Ember.run.schedule('actions', () => {
this.set('hasFocus', false);
});
},

actions: {
Expand Down
2 changes: 1 addition & 1 deletion addon/mixins/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default Ember.Mixin.create(StyleBindingsMixin, BodyEventListener, {
}).property('contentViewClass'),
didInsertElement: function() {
this._super();
Ember.run.schedule('afterRender', this, () => {
Ember.run.schedule('actions', this, () => {
this.snapToPosition();
this.set('visibility', 'visible');
this.set('isShowing', true);
Expand Down