From 937cd0218de22f74655464e5341f3d8945aea34e Mon Sep 17 00:00:00 2001 From: adkinsrs Date: Fri, 6 Sep 2024 09:23:55 -0400 Subject: [PATCH] (#875) CSS escape HTML ID when instantiating sortable component --- www/js/curator_common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/curator_common.js b/www/js/curator_common.js index bfb18c29..3df352c3 100644 --- a/www/js/curator_common.js +++ b/www/js/curator_common.js @@ -1202,7 +1202,7 @@ const renderOrderSortableSeries = (series) => { } // Create sortable for this series - sortable(`#${series}-order-list`, { + sortable(`#${CSS.escape(series)}-order-list`, { hoverClass: "has-text-weight-bold" , itemSerializer(item, container) { item.label = item.node.textContent @@ -1510,7 +1510,7 @@ const updateOrderSortable = () => { } for (const series of sortableSet) { - // 3. Series is in sortableSet but not seriesSet, remove -order element + // Series is in sortableSet but not seriesSet, remove -order element if (!seriesSet.has(series)) { const orderElt = document.getElementById(`${series}-order`); orderElt.remove();