Skip to content

Commit

Permalink
Knockout build error in production fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasherceg committed Feb 19, 2025
1 parent 85c44ca commit 77c3416
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5118,7 +5118,7 @@ ko.bindingHandlers['selectedOptions'] = {

if (newValue && typeof newValue.length == "number") {
// touch all array elements
ko.utils.arrayForEach(newValue, ko.unwrap);
ko.utils.arrayForEach(newValue, ko.utils.unwrapObservable);

ko.utils.arrayForEach(element.getElementsByTagName("option"), function(node) {
var isSelected = ko.utils.arrayIndexOf(newValue, ko.selectExtensions.readValue(node), true) >= 0;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 77c3416

Please sign in to comment.