Skip to content

Conversation

@meet-vaghasiya
Copy link
Contributor

@meet-vaghasiya meet-vaghasiya commented Oct 4, 2025

  • Add pendingTimer to manage timeout and prevent multiple timers
  • Enhance removeMask method with additional safety checks
  • Prevent memory leaks by clearing timers and removing event listeners
  • Add null checks before removing mask from DOM
  • Reset mask to null after removal to prevent stale references
  • Improve unblock and beforeUnmount lifecycle methods for better cleanup

Defect Fixes

When toggling the blocked property of BlockUI rapidly (e.g. multiple times in quick succession), the UI can end up in a broken state: visually it appears “unblocked” (i.e. the dark overlay is gone), but the interface is still non‑interactive (i.e. you can’t click or interact with buttons).

Here is more info about issues -7817

- Add pendingTimer to manage timeout and prevent multiple timers
- Enhance removeMask method with additional safety checks
- Prevent memory leaks by clearing timers and removing event listeners
- Add null checks before removing mask from DOM
- Reset mask to null after removal to prevent stale references
- Improve unblock and beforeUnmount lifecycle methods for better cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant