Skip to content

fix(19325): properly set overlay as display none if blocked equals false#19439

Open
Cr3aHal0 wants to merge 1 commit intoprimefaces:masterfrom
Cr3aHal0:fix-19325-block-ui-shown-at-startup
Open

fix(19325): properly set overlay as display none if blocked equals false#19439
Cr3aHal0 wants to merge 1 commit intoprimefaces:masterfrom
Cr3aHal0:fix-19325-block-ui-shown-at-startup

Conversation

@Cr3aHal0
Copy link
Contributor

Fixes 19325

Disclaimer : As of today, PrimeNG implementation of BlockUI is quite different from PrimeVue & PrimeReact one which is unified (the component is a wrapper of content and the overlay is projected within the wrapper boundaries, whereas in PrimeNG BlockUi is much likely a sibling of the target to be blocked). I did not know if this component had any major plan coming from PrimeNG team, so I opted for a quick working fix which just makes sure that if the blocked flag is false at startup then it should consider the overlay as invisible (hence the display: none, which is already called when manually hiding the overlay and then prevents the overlay content to show in the first place - which was the description of the issue)

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.

Block UI: DOM elements inside Block UI shouldn't be visible when blocked is false

1 participant