Skip to content

Commit

Permalink
Fix bug on su-dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
black-trooper committed Mar 30, 2018
1 parent 20f1739 commit e678001
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dist/semantic-ui-riot.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,11 @@ this.reset = function () {
};

this.changed = function () {
if (opts.multiple) {
var value = _this.value ? _this.value : [];
var defaultValue = _this.defaultValue ? _this.defaultValue : [];
return value.toString() !== defaultValue.toString();
}
return _this.value !== _this.defaultValue;
};

Expand Down
Loading

0 comments on commit e678001

Please sign in to comment.