1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Prevent modal clos on mouse press up if outside the dialog

This commit is contained in:
venkat_karasani 2024-07-13 12:22:27 -05:00 committed by Bill Thornton
parent b9dea3a788
commit 2ed3aced2f
2 changed files with 28 additions and 21 deletions

View file

@ -1058,7 +1058,10 @@ function show(itemId, serverId, resolve) {
centerFocus(dlg.querySelector('.formDialogContent'), false, true);
}
dialogHelper.open(dlg);
dialogHelper.open(dlg, {
preventCloseOnClick : true,
preventCloseOnRightClick : true
});
dlg.addEventListener('close', function () {
if (layoutManager.tv) {