Merge pull request #3505 from westlywright/jquery.select.fix

jQuery Issue
This commit is contained in:
Westly Wright 2019-10-25 14:30:55 -07:00 committed by GitHub
commit 1225b9c7e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import { reads } from '@ember/object/computed';
import Component from '@ember/component';
import layout from './template';
import StatefulPromise from 'shared/utils/stateful-promise';
import $ from 'jquery';
export default Component.extend({
layout,
@ -119,7 +120,7 @@ export default Component.extend({
},
_change() {
const selectEl = this.element;
const selectEl = $(this.element).find('select')[0];
const selectedIndex = selectEl.selectedIndex;
if ( selectedIndex === -1 ) {