-
Notifications
You must be signed in to change notification settings - Fork 5k
fix: record does not open in side panel after returning from fullscreen #17131
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
base: main
Are you sure you want to change the base?
fix: record does not open in side panel after returning from fullscreen #17131
Conversation
- Introduced a check for the command menu's open state before processing navigation stack. - Updated logic to ensure that the current record ID is only retrieved when the command menu is open and reset navigation stack is not triggered. - Improved readability and maintainability of the code by restructuring conditional checks.
- Enhanced the handling of side panel closing events by introducing a check for the command menu's open and closing states. - Utilized Recoil's snapshot to conditionally deactivate the record table row only when the command menu is not active, improving the overall user experience and preventing unintended deactivations. - Refactored the side panel closing listener to use a callback for better state management.
- Renamed the deactivation handler for clarity and improved the logic to ensure record deactivation only occurs when the command menu is not open. - Introduced a microtask queue to check the command menu state after the current execution, enhancing the responsiveness of the side panel closing event. - Refactored the side panel closing listener to utilize the updated deactivation logic for better state management.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 2 files
|
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:40449 This environment will automatically shut down when the PR is closed or after 5 hours. |
- Renamed the deactivation handler to improve clarity and better reflect its purpose. - Updated the logic to ensure that record deactivation occurs only when the command menu is closed, enhancing the user experience. - Adjusted the side panel closing listener to utilize the renamed handler for improved readability and maintainability.
Closes #17089