Запрет закрытия модального окна, кроме кнопки

This commit is contained in:
Artem VV 2023-06-20 21:36:25 +07:00
parent f4a4830062
commit 357bf6747d

View file

@ -378,6 +378,8 @@ const userIsCreator = await isUserChatCreator(user.id, chat.chat.id);
document.addEventListener("DOMContentLoaded", () => {
const modalsController = new HystModal({
linkAttributeName: "data-hystmodal",
closeOnOverlay: false,
closeOnEsc: false,
});
if (location.hash === "#chatSettings") {
modalsController.open("#settingsModal");