-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Modal: keydown
event propagates to all modals
#3716
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
@mic4ael this will be fixed in next release because root cause of these issues are same as #3194, #3174. We tested a new approach under Stardust UI with |
You can check an example here: https://stardust-ui.github.io/react/components/popup#usage-nested |
Can you point me to a specific commit that fixes this issue? I am curious what causes this problem. |
At leat I want to understand why this happens ;) |
At SUIR, we are using EventStack to handle events in nested components. However, this abstraction is not working perfectly in the real world. It tries do too much: handle nesting in React/DOM trees via events, it was a mistake. This idea is not working at all (it works differently than browser's event loop) and it creates event glitches which can't be debugged easily. Solution was to separate React/DOM nesting and event handling.
See microsoft/fluent-ui-react#1075 and microsoft/fluent-ui-react#949, the code is not obvious and quite complicated 💥 Key thing there is that you can register your DOM nodes and and then call |
@layershifter Hi! Do you shift your efforts to stardust-ui from Semantic and Fomantic? |
@xumix it's true and not true. Stardust UI is my official job and there is full time team to support it at Microsoft, short answer. We introduced a lot of new ideas at Stardust UI and many of them will be backported to Semantic UI React. And you can see it now, I introduced new parts of documentation and knobs in SUIR 🎉 Actually, latest updates in I will continue to share code between SUIR and Stardust. Actually, to fix this issue I am going to use packages from SUIR development is not stopped and will be continued. I personally focused on fixing bugs and docs improvements. I am filling that SUIR is mature enough and we are going to make 1.0 this year finally. |
@layershifter Ok, thanks for your dedication :) |
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
Steps
Modal
trigger which opens aModal
on click.Modal
which opens anotherModal
on click.Escape
.Expected Result
The top modal is being closed whereas the second one stays open.
Actual Result
Modal
closes only the visibleModal
Version
0.87.3
Testcase
https://codesandbox.io/embed/semantic-ui-react-yenf7
The text was updated successfully, but these errors were encountered: