diff --git a/apps/readest-app/src/components/Dropdown.tsx b/apps/readest-app/src/components/Dropdown.tsx index 2d10a57e..bda31aa3 100644 --- a/apps/readest-app/src/components/Dropdown.tsx +++ b/apps/readest-app/src/components/Dropdown.tsx @@ -34,7 +34,7 @@ const Dropdown: React.FC = ({ : children; return ( - <> +
{isOpen && (
setIsDropdownOpen(false)} /> )} @@ -48,7 +48,7 @@ const Dropdown: React.FC = ({
{isOpen && childrenWithToggle}
- + ); }; diff --git a/apps/readest-app/src/components/WindowButtons.tsx b/apps/readest-app/src/components/WindowButtons.tsx index ecd568f4..90327971 100644 --- a/apps/readest-app/src/components/WindowButtons.tsx +++ b/apps/readest-app/src/components/WindowButtons.tsx @@ -53,6 +53,7 @@ const WindowButtons: React.FC = ({ if ( target.closest('.btn') || target.closest('.window-button') || + target.closest('.dropdown-container') || target.closest('.exclude-title-bar-mousedown') ) { return;