Closed Gordi90 closed 1 month ago
I have the same problem here. I can confirm that the escaping is indeed the problem. After fixing it i get weird borders in my inputs which I can not get away tho. @Gordi90 did you solve this problem somehow?
I suggest to check your "fix". I have no display issues after removing the dark classes properly.
Can you please paste your corrected version @Gordi90 ?
Hey @Gordi90 - please check out the latest version, the issue has been fixed. Thanks!
Steps to reproduce
data-hs-select
is invalid. Here is the given JSON for the country selector exampleValidator screenshot:
I didn't check all the examples, but https://preline.co/plugins/html/advanced-select.html#example is also affected
Suspected cause
Probably wrong regex is used to remove the dark classes. It seems that with the dark classes the following escape characters are removed as well. In my example
"text-gray-800"
should be"text-gray-800\"
in two occasions at "toggleTag" and "optionTemplate". Thetext-gray-500"
should betext-gray-500\"
for the "extraMarkup" as well.Probably other examples are affected as well.