Open Sempervivum opened 7 months ago
https://codepen.io/brianvoe/pen/MWXqXXV
Can you recreate a running example please
Hi Brian, many thanks for your message and sorry for replying late. This is a demo for this issue. The clear button is displayed but when pressing it nothing happens. https://webentwicklung.ulrichbangert.de/slim-select/slim-select-clear-btn.html Best regards, Ulrich
Am 23.01.2024 16:37 schrieb Brian Voelker:
https://codepen.io/brianvoe/pen/MWXqXXV [1]
Can you recreate a running example please
-- Reply to this email directly, view it on GitHub [2], or unsubscribe [3]. You are receiving this because you authored the thread.Message ID: @.***>
Links:
[1] https://codepen.io/brianvoe/pen/MWXqXXV [2] https://github.com/brianvoe/slim-select/issues/508#issuecomment-1906327457 [3] https://github.com/notifications/unsubscribe-auth/ABTCBX5NLRZWQ4TIQCA4A3TYP7KKJAVCNFSM6AAAAABB2DKIBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBWGMZDONBVG4
Do you need to add an empty option to be able to deselect?
I'm also having this issue, whenever you click the the X it isn't hitting the correct div. It should be hitting the div with the class ss-deselect but when using ajax it hits the ss-values instead. Not sure this helps at all but at least its some more info.
I believe you I just havent fixed it yet. feel free to submit a pr.
I switched on the clear button by adding the option:
and so far it works fine: The button is showing up. However, when pressing it the value field is no emptied. My test code:
Data (shortened):
I tried to debug Slimselect but no success as I don't understand the code completely.
When I turn off fetching remote data and insert some options into the HTML the clear button is working without issues.
Screenshots Please add screenshots to help explain your issue. If the issue is a visual issue and doesnt have a screenshot that will make me sad.