You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57
Current behavior
Blocking and unblock rapidly leads to TypeError this.mask is null (Firefox) or TypeError Cannot read properties of null (reading 'addEventListener') (Chrome) in blockui's unblock function.
Expected behavior
No error.
Minimal reproduction of the problem with instructions
Open showcase, click "Block-unblock" button, see error.
This can also be reproduced manually in the BlockUI showcase by rapidly clicking the Block and Unblock buttons repeatedly.
Please tell us about your environment:
React version:
PrimeReact version:
6.5.0, 7.0.0
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Firefox, Chrome
Language: [all | TypeScript X.X | ES6/7 | ES5]
The text was updated successfully, but these errors were encountered:
I suspect this hinges on animation duration and can be worked around by disabling it.
With 6.5.0 if i style blockui transitionDuration: "0s" then the error goes away, but nothing on the page reacts to clicks after unblocking. The invisible blockui div remains and covers everything.
With 7.0.0 transitionDuration: "0s" has no effect. If i do animation: "none" then it blocks without animation, but never unblocks.
How can I properly disable animation?
I suspect the code is written in such a way that it breaks with zero animation.
melloware
added a commit
to melloware/primereact
that referenced
this issue
Nov 11, 2021
I'm submitting a ... (check one with "x")
Codesandbox Case (Bug Reports)
https://codesandbox.io/s/primereact-blockui-rapid-blocking-unblocking-leads-to-typeerror-this-mask-is-null-d46he
Current behavior
Blocking and unblock rapidly leads to
TypeError this.mask is null
(Firefox) orTypeError Cannot read properties of null (reading 'addEventListener')
(Chrome) in blockui's unblock function.Expected behavior
No error.
Minimal reproduction of the problem with instructions
Open showcase, click "Block-unblock" button, see error.
This can also be reproduced manually in the BlockUI showcase by rapidly clicking the Block and Unblock buttons repeatedly.
Please tell us about your environment:
React version:
PrimeReact version:
6.5.0, 7.0.0
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Firefox, Chrome
Language: [all | TypeScript X.X | ES6/7 | ES5]
The text was updated successfully, but these errors were encountered: