From 8fd44434ed64ef795256513ca1ea850fba8284e6 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Fri, 6 Dec 2024 14:54:49 -0500 Subject: [PATCH] chore: wrap comment --- srcts/src/bindings/input/selectInput.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/srcts/src/bindings/input/selectInput.ts b/srcts/src/bindings/input/selectInput.ts index 559e2f06b..434135513 100644 --- a/srcts/src/bindings/input/selectInput.ts +++ b/srcts/src/bindings/input/selectInput.ts @@ -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;