From 5da7c1f79d850b312960e7a897b79dc34e083d87 Mon Sep 17 00:00:00 2001 From: Peter Keung Date: Tue, 14 Jan 2020 21:15:03 -0800 Subject: [PATCH] EZP-31291: Fix Content Type creation filter on certain words such as "File" --- .../Resources/public/js/scripts/sidebar/instant.filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/public/js/scripts/sidebar/instant.filter.js b/src/bundle/Resources/public/js/scripts/sidebar/instant.filter.js index 7d7638d86c..e5aa91ce74 100644 --- a/src/bundle/Resources/public/js/scripts/sidebar/instant.filter.js +++ b/src/bundle/Resources/public/js/scripts/sidebar/instant.filter.js @@ -28,7 +28,7 @@ const groups = [...filter.querySelectorAll('.ez-instant-filter__group')]; const items = [...filter.querySelectorAll(SELECTOR_ITEM)]; const itemsMap = items.reduce((total, item) => [...total, { - label: item.innerHTML.toLowerCase(), + label: item.textContent.toLowerCase(), element: item }], []);