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

feat(menu): add openMenuOnArrows option to allow disabling arrow keys to open the menu #5969

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Julusian
Copy link

This adds an option to disable opening the menu when ArrowUp and ArrowDown key events are received, defaulting to the current behaviour

I am using this library in a project where the text input field is a multi-line text box.
There is quite a bit of custom logic going on, as the dropdown is really being used as suggestions for token completion, so most of the time is closed while the field has focus, and the list of options is empty.

This library is consuming the 'ArrowUp' and 'ArrowDown' key presses, to open the dropdown to the first/last values. For my use case this doesn't make sense, and simply results in those keys not working in the multi-line input field, and the menu doesn't even show.

Copy link

changeset-bot bot commented Oct 27, 2024

🦋 Changeset detected

Latest commit: 9fc4833

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-select Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codesandbox-ci bot commented Oct 27, 2024

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.

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.

1 participant