mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Merge pull request #6178 from syaiful6/select-native
Fix Select Component
This commit is contained in:
commit
f02fce75c3
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ export default Component.extend({
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
change() {
|
change() {
|
||||||
let [selectEl] = this.$('select');
|
// jscs:disable requireArrayDestructuring
|
||||||
|
let selectEl = this.$('select')[0];
|
||||||
|
// jscs:enable requireArrayDestructuring
|
||||||
let {selectedIndex} = selectEl;
|
let {selectedIndex} = selectEl;
|
||||||
|
|
||||||
// decrement index by 1 if we have a prompt
|
// decrement index by 1 if we have a prompt
|
||||||
|
|
Loading…
Add table
Reference in a new issue