flowbite-svelte
flowbite-svelte copied to clipboard
Dropdown: click outside not working on mobile
Describe the bug
On a mobile device when tapping away from a dropdown to close it, it does not close.
I have checked this in Safari and Chrome on IOS.
This behavior can be exhibited on the flowbite svelte dropdown page itself. Checked with @JHorlamide
Reproduction
https://flowbite-svelte.com/docs/components/dropdown
Flowbite version and System Info
"flowbite-svelte": "^0.44.22"
neither working one Safari for macos here
You can work around this by adding an id
to the Dropdown and then closing the popup when an element is clicked with
document.getElementById('<Dropdown id>').style.display = 'none';