Added the force parameter to the DialogContext.jsx

This commit is contained in:
Mathias Wagner
2023-02-19 18:28:17 +01:00
parent 659bd6fdc5
commit f4ef324607

View File

@@ -7,8 +7,8 @@ export const DialogProvider = (props) => {
const areaRef = useRef();
const ref = useRef();
const close = () => {
if (props.disableClosing) return;
const close = (force = false) => {
if (props.disableClosing && !force) return;
hideTooltips(false);
areaRef.current?.classList.add("dialog-area-hidden");
ref.current?.classList.add("dialog-hidden");