mirror of https://github.com/rancher/ui.git
Merge pull request #3505 from westlywright/jquery.select.fix
jQuery Issue
This commit is contained in:
commit
1225b9c7e4
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue