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

[NITPICK] call closeDropdown before openModal import spreadsheet #10254

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

prastoin
Copy link
Contributor

@prastoin prastoin commented Feb 17, 2025

Introduction

Just a nitpick resulting from #10205
Avoid any possible race condition between competing event handlers by closing dropdown before opening modal

@prastoin prastoin self-assigned this Feb 17, 2025
@prastoin prastoin marked this pull request as ready for review February 17, 2025 13:32
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 modifies the order of operations in the dropdown menu's Import functionality to ensure proper UI state management.

  • Changed onClick handler in /packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuContent.tsx to close dropdown before opening import dialog

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

@prastoin prastoin changed the title [NITPICK] call closeDropdown before openModal [NITPICK] call closeDropdown before openModal import spreadsheet Feb 17, 2025
@prastoin prastoin merged commit cd8e240 into main Feb 17, 2025
49 of 50 checks passed
@prastoin prastoin deleted the nitpick-import-open-function-order branch February 17, 2025 18:14
Copy link
Contributor

Thanks @prastoin for your contribution!
This marks your 41st PR on the repo. You're top 1% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

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.

2 participants