mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Fix Select Component
jQuery instance isn't iterable, so we cant destructuring it. closes https://github.com/TryGhost/Ghost/issues/6171
This commit is contained in:
parent
f44d7441bb
commit
878e7b5678
@ -21,7 +21,9 @@ export default Component.extend({
|
||||
|
||||
actions: {
|
||||
change() {
|
||||
let [selectEl] = this.$('select');
|
||||
// jscs:disable requireArrayDestructuring
|
||||
let selectEl = this.$('select')[0];
|
||||
// jscs:enable requireArrayDestructuring
|
||||
let {selectedIndex} = selectEl;
|
||||
|
||||
// decrement index by 1 if we have a prompt
|
||||
|
Loading…
Reference in New Issue
Block a user