Skip to content

fix: dropdown :added condition to close the dialog on shift tab #978

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

Conversation

vkatkade-c-eightfold
Copy link
Contributor

@vkatkade-c-eightfold vkatkade-c-eightfold commented Apr 22, 2025

SUMMARY:

Added functionality to close the dropdown when Shift + Tab is pressed while the focus is on the first option, to handle focus loss behavior

GITHUB ISSUE (Open Source Contributors)

NA

JIRA TASK (Eightfold Employees Only):

https://eightfoldai.atlassian.net/browse/ENG-139569

CHANGE TYPE:

  • Bugfix Pull Request
  • Feature Pull Request

TEST COVERAGE:

  • Tests for this change already exist
  • I have added unittests for this change

TEST PLAN:

Pull branch down locally and start storybook (yarn storybook)
Go to dropdown
Make the toggleDropdownOnShiftTab false
Verify whether the dropdown closes when pressing Shift+Tab while the focus is on the first option

Screen.Recording.2025-04-25.at.2.41.42.PM.mov

Copy link

codesandbox-ci bot commented Apr 22, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@ypatadia-eightfold ypatadia-eightfold self-requested a review April 28, 2025 00:30
Copy link
Collaborator

@ypatadia-eightfold ypatadia-eightfold left a comment

Choose a reason for hiding this comment

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

LGTM

@ypatadia-eightfold ypatadia-eightfold merged commit b4bed98 into EightfoldAI:main Apr 28, 2025
3 checks passed
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.

3 participants