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: dropdown menu doesn't close and remains open #8302

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

harshit078
Copy link
Contributor

@harshit078 harshit078 commented Nov 4, 2024

Description

Changes

Screen.Recording.2024-11-04.at.4.17.02.PM.mov

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 addresses dropdown menu persistence issues by implementing proper closing behavior and consistent dropdown ID management across components.

  • Added dropdown cleanup on unmount in packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/MultiItemFieldMenuItem.tsx
  • Fixed typo in CurrencyPickerHotkeyScope.ts enum value ('currncy-picker-dropdown-id')
  • Standardized dropdown ID format to include '-dropdown-id' suffix in PhoneCountryPickerDropdownButton.tsx
  • Implemented automatic dropdown closing on mouse leave in MultiItemFieldMenuItem.tsx
  • Added closeDropdown call in handleMouseLeave to prevent multiple open dropdowns

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

@lucasbordeau lucasbordeau self-assigned this Nov 8, 2024
@lucasbordeau lucasbordeau enabled auto-merge (squash) November 8, 2024 15:55
@lucasbordeau lucasbordeau merged commit 0381996 into twentyhq:main Nov 8, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dropdown menu doesn't close and remains open
2 participants