-
Notifications
You must be signed in to change notification settings - Fork 215
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
Dropdowns stay visible in modeling diagram #713
Comments
Hello @andreashimin! I am willing to work on this. Are you able to assign this to me? |
@AryanK1511 assigned! Good luck 🤞 |
Hello @chilijung ! I was working on a fix for the dropdown issue, and I wanted to share some insights and options we have for resolving it. As shown in the screenshot below, there are two different components: when you click in the green area, the dropdown closes, but it doesn’t close when you click in the red area. This discrepancy occurs because the ReactFlow component (version 11) does not detect mouse clicks in the same way; instead, it interprets these actions as attempts to drag the screen. This issue has been discussed in this GitHub issue, where others have faced the same problem. The maintainers of React Flow released version 12 to address this, as mentioned in this follow-up issue. Many users reported that the update resolved their issues, as highlighted here. Proposed Solutions
Instead of the
Let me know how you’d like to proceed. I’ve explored various options, but I believe one of these solutions should effectively address the issue. Thank you! |
@AryanK1511, Thank you for the quick progress! Fantastic! @andreashimin will reply to you soon. |
Hi @AryanK1511 Thanks for the quick solutions! I have reviewed the React Flow migration guide for v12 https://reactflow.dev/learn/troubleshooting/migrate-to-v12, and we’ll need to update some APIs and types. It looks manageable, so we can go ahead and give it a try. |
Hello @chilijung and @andreashimin ! I am back again. I managed to fix this issue in #724. Check it out and lemme know what you think about it. |
Describe the bug
When users click the "more" icons in the model diagram and drag the screen, the dropdowns remain visible and don't disappear as expected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The dropdowns should automatically close when users click outside of them or shift focus to another area of the screen.
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: