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
Styling a <BlockUI> component's mask with an infinite animation stops it from ever unblocking. This appears to be because the component waits for the "animationend" event before calling removeMask():
It would be nice to be able to style the mask with an infinite animation such as animate-pulse without it breaking the component.
Pull Request Link
No response
Reason for not contributing a PR
Lack of time
Unsure how to implement the fix/feature
Difficulty understanding the codebase
Other
Other Reason
Unsure if this is valid, and if so what the approach should be to fix it.
Maybe the approach should involve a hasInfiniteCSSAnimation utility that does:
Describe the bug
Styling a
<BlockUI>
component'smask
with an infinite animation stops it from ever unblocking. This appears to be because the component waits for the"animationend"
event before callingremoveMask()
:primevue/packages/primevue/src/blockui/BlockUI.vue
Lines 82 to 86 in 9501f36
It would be nice to be able to style the mask with an infinite animation such as
animate-pulse
without it breaking the component.Pull Request Link
No response
Reason for not contributing a PR
Other Reason
Unsure if this is valid, and if so what the approach should be to fix it.
Maybe the approach should involve a
hasInfiniteCSSAnimation
utility that does:Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-njjbnlqt?file=src%2FApp.vue
Environment
StackBlitz
Vue version
3.4.31
PrimeVue version
4.2.5
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
"unblock"
is never emitted, and continuing to click the "Block" button again adds more masks to the DOMExpected behavior
The mask is removed and
"unblock"
is emittedThe text was updated successfully, but these errors were encountered: