-
Notifications
You must be signed in to change notification settings - Fork 103
Dialog: open
event is not fired when conditionally rendered
#7217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @SAP/ui5-webcomponents-topic-rd , Could you please take a look at this regression? Regards, |
Hello @Lukas742, Can you create an example, which do not use React. I'm trying reproducing the issue like:
and the Best, |
it turns out that this only happens when using our wrapper. Sorry for not initially checking for that! In our wrapper, we have to add a workaround for a hydration issue when attaching events:
The
The events are added like this:
When debugging I found that because of this, the The solution I found is using I'm moving this issue to our repo, as this is not a ui5-webcomponents bug, but a regression in our wrapper. |
🎉 This issue has been resolved in version v2.9.1 🎉 The release is available on v2.9.1 Your semantic-release bot 📦🚀 |
Bug Description
When rendering a
Dialog
conditionally, theopen
event is not fired anymore. This seems to be a regression introduced after v2.7.4Here you can find an example using the React wrapper. In case you need one without it, please let me know:
https://stackblitz.com/edit/github-e6g7wcfr?file=src%2FApp.tsx,package.json
And here you can find the same implementation just with v2.7.4:
https://stackblitz.com/edit/github-e6g7wcfr-iexzjfzz?file=src%2FApp.tsx,package.json
Affected Component
Dialog
Expected Behaviour
open
should be fired if theui5-dialog
is initialized withopen="true"
.Isolated Example
https://stackblitz.com/edit/github-e6g7wcfr?file=src%2FApp.tsx,package.json
Steps to Reproduce
open
is not fired (no log in the console)Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.9.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
UI5WCR
Declaration
The text was updated successfully, but these errors were encountered: