Skip to content

Commit

Permalink
Fixed select trigger bug
Browse files Browse the repository at this point in the history
  • Loading branch information
acburst committed Jun 17, 2018
1 parent 93edc1b commit d1c369c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@
}

// Set selected on original select option
// Check if clicking on already selected option
if (!$(this._valueDict[key].el).prop('selected')) {
// Only trigger if selected state changed
let prevSelected = $(this._valueDict[key].el).prop('selected');
if (prevSelected !== selected) {
$(this._valueDict[key].el).prop('selected', selected);
this.$el.trigger('change');
}
Expand Down

1 comment on commit d1c369c

@pbsdpk
Copy link

@pbsdpk pbsdpk commented on d1c369c Jun 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello , @acburst @Dogfalo
Could you please let me know, when this beta version 'v.1.0.0-rc.1' moves to final stable 'v.1.0.0' ?

Please sign in to comment.