Skip to content

Commit 544caec

Browse files
authored
fix(dropdown): dont trigger onchange event on initiaload when values are given
When values are given on initialization of a dropdown, all entries which have a selected attribute set will trigger the onChange event The already existing fireOnChange setting does not cover this situation to prevent the callback. In comparison: When a dropdown is just converted from a select and those option values do also have the selected property set, then the onchange does not happen, so the behavior does not match, but should.
1 parent 4929629 commit 544caec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/definitions/modules/dropdown.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ $.fn.dropdown = function(parameters) {
117117
module.setup.layout();
118118

119119
if(settings.values) {
120+
module.set.initialLoad();
120121
module.change.values(settings.values);
122+
module.remove.initialLoad();
121123
}
122124

123125
module.refreshData();

0 commit comments

Comments
 (0)