Skip to content

Commit

Permalink
chore: wrap comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Dec 6, 2024
1 parent 5825af7 commit 8fd4443
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions srcts/src/bindings/input/selectInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ class SelectInputBinding extends InputBinding {
};
};

// Calling selectize.clear() first works around https://github.com/selectize/selectize.js/issues/2146:
// As of selectize.js >= v0.13.1, .clearOptions() clears the selection, but does NOT remove the
// previously-selected options. So unless we do a manual .clear() first, the current selection(s)
// will remain as (deselected) options. See #3966
// Calling selectize.clear() first works around https://github.com/selectize/selectize.js/issues/2146
// As of selectize.js >= v0.13.1, .clearOptions() clears the selection,
// but does NOT remove the previously-selected options. So unless we call
// .clear() first, the current selection(s) will remain as (deselected)
// options. See #3966 #4142
selectize.clear();
selectize.clearOptions();
let loaded = false;
Expand Down

0 comments on commit 8fd4443

Please sign in to comment.