Skip to content
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

Fix "Add track" select box not going away after selecting element #4633

Merged
merged 2 commits into from
Nov 3, 2024

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Nov 3, 2024

We have the concept of different types of track selectors. Currently, the select box is not dismissed properly though

This was a bit of a tricky one but it was due to not having a Suspense boundary properly wrapping the component.

Diagnosed by removing the rendering of <Component/>...confirmed that the behavior went away, realized it was related to rendering the <Component/> and that there could be a suspense boundary needed (could be interesting to dive deeper into this behavior for hobby purposes, probably it was going to a suspense boundary higher in the react tree and then the select state was sort of messed up by that somehow)

@cmdcolin
Copy link
Collaborator Author

cmdcolin commented Nov 3, 2024

video recording of bug, showing that the popup stays active even after i select an item

Screencast.From.2024-11-03.09-42-21.mp4

@cmdcolin cmdcolin added the bug Something isn't working label Nov 3, 2024
@cmdcolin cmdcolin merged commit be177a4 into main Nov 3, 2024
@cmdcolin cmdcolin deleted the select_dismiss branch November 3, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant