Use patched frameless-titlebar on Windows
This commit is contained in:
parent
79c52847cd
commit
5634601554
54 changed files with 1343 additions and 323 deletions
|
@ -103,8 +103,19 @@ export const ModalHost = React.memo(
|
|||
useFocusTrap ? (
|
||||
<FocusTrap
|
||||
focusTrapOptions={{
|
||||
// This is alright because the overlay covers the entire screen
|
||||
allowOutsideClick: false,
|
||||
allowOutsideClick: ({ target }) => {
|
||||
if (!target || !(target instanceof HTMLElement)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const titleBar = document.querySelector(
|
||||
'.TitleBarContainer__title'
|
||||
);
|
||||
if (titleBar?.contains(target)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
}}
|
||||
>
|
||||
{modalContent}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue