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

Fixed cannot close record table cell header filter #9998

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

lucasbordeau
Copy link
Contributor

With the introduction of dropdown focus id, the table header cell filter dropdown wasn't taken into account by this new system that prevents multiple dropdowns from conflicting.

The fix was to just add a dropdown focus id when opening the dropdown.

There was also a bug with the hotkey scope which was staying on table hotkey scope, thus triggering table hotkeys, this PR also fixes that.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR fixes dropdown focus management and hotkey scope issues in the table header cell filter dropdown functionality.

  • Added proper dropdown focus ID handling in useHandleToggleColumnFilter.ts to prevent multiple dropdowns from conflicting
  • Fixed hotkey scope management to prevent table hotkeys from triggering when filter dropdown is open
  • Integrated useSetActiveDropdownFocusIdAndMemorizePrevious hook for dropdown state management
  • Added usePreviousHotkeyScope hook to properly handle hotkey scope transitions

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@lucasbordeau lucasbordeau merged commit b2e4d0d into main Feb 4, 2025
47 checks passed
@lucasbordeau lucasbordeau deleted the fix/table-header-cell-dropdown branch February 4, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants