Fixed a bug in the DialogContext.jsx

This commit is contained in:
Mathias Wagner
2023-02-19 18:53:29 +01:00
parent 4b9ed6a60c
commit d38b8fc17f

View File

@@ -9,12 +9,12 @@ export const DialogProvider = (props) => {
const close = (force = false) => {
if (props.disableClosing && !force) return;
hideTooltips(false);
areaRef.current?.classList.add("dialog-area-hidden");
ref.current?.classList.add("dialog-hidden");
}
const onClose = (e) => {
hideTooltips(false);
if (e.animationName === "fadeOut") props?.close();
}