themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.29k stars 708 forks source link

Modal over Modal, can not be removed appropriately #858

Closed monster-echo closed 1 month ago

monster-echo commented 2 months ago

When I have a Modal over another Modal.

The top modal backdrop is not cover the bottom Modal by the z-40.

if I add the top Modal backdrop with z-50 and Modal with z-[60], it's worked.

but when removed the top Modal. it fails, because the the top Modal backdrop is alive and bottom Modal backdrop is destroyed.

https://github.com/themesberg/flowbite/blob/30b276bfd19cbb4592612fcff2161b0a0e589243/src/components/modal/index.ts#L88-L95

zoltanszogyenyi commented 1 month ago

Hey @monster-echo,

Should be fixed via your PR. Thanks!