Skip to content

Commit

Permalink
Fix disabled options where skipped from being rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Aug 6, 2024
1 parent 2de7c00 commit a801021
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/assets/scripts/choices.js
Original file line number Diff line number Diff line change
Expand Up @@ -3706,7 +3706,7 @@ var Store = /** @class */function () {
*/
get: function () {
return this.choices.filter(function (choice) {
return !choice.disabled && choice.active;
return choice.active;
});
},
enumerable: false,
Expand Down
2 changes: 1 addition & 1 deletion public/assets/scripts/choices.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/scripts/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class Store implements IStore {
* Get active choices from store
*/
get activeChoices(): ChoiceFull[] {
return this.choices.filter((choice) => !choice.disabled && choice.active);
return this.choices.filter((choice) => choice.active);
}

/**
Expand Down

0 comments on commit a801021

Please sign in to comment.