Checkboxes inside Popover #1378
Replies: 2 comments 2 replies
-
Have you found a solution to this issue? I'm experiencing the same problem. |
Beta Was this translation helpful? Give feedback.
-
The issue you're seeing happens because the Popover unmounts when it's closed, which resets the checkbox state. A couple of ways to fix it:
|
Beta Was this translation helpful? Give feedback.
-
I've been trying to use checkboxes inside the popover,
For UI it's working fine, the checkboxes are displaying but when I check the checkbox and close the popover and open it again the checkbox is not checked. (checkbox is being reset whenever I close the popover).
What I think is, as the popover injects the HTML and when it opens removes it on close, the checkbox values are being reset every time, If it just hides it with the css the checkboxes inside the popover might work.
This can be tested here: beourguest-frontend.pages.dev/listings
I've used the popover in filters.
If anybody can give me suggestions would be very helpful.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions