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 3 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
12 changes: 8 additions & 4 deletions addon/components/select-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -674,12 +674,16 @@ export default Ember.Component.extend(
return this.sendAction('userSelected', selection);
},

focusIn: function() {
return this.set('hasFocus', true);
focusIn: function(event) {
if (event.target.tagName === 'INPUT') {
this.set('hasFocus', true);
}
},

focusOut: function() {
return this.set('hasFocus', false);
focusOut: function(event) {
if (event.target.tagName === 'INPUT') {
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('afterRender', () => {
this.snapToPosition();
this.set('visibility', 'visible');
this.set('isShowing', true);
Expand Down