mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-02-09 06:58:41 -06:00
Added the force parameter to the DialogContext.jsx
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user