Hi, in the attached example, unfortunately, the property ShowCloseIcon=false of the Dialog is not working.
Any idea?
Stackblitz:
https://stackblitz.com/edit/react-starter-typescript-ycj5xf?file=App.tsx
or offline files:
| const [closeIcon, setCloseIcon] = useState<boolean>(true); useEffect(() => { setIsValidCountdownValue(!isModeCountdown || timer > 0);
setCloseIcon(false); }, [isModeCountdown, timer]);<DialogComponent ref={dialogRef} showCloseIcon={closeIcon} /> |
Thanks, the provided solution works.
Any idea why I have to use this workaround or is there any cleaner solution?