react-select icon indicating copy to clipboard operation
react-select copied to clipboard

feature/always-focus-first-menu-option

Open andersonmfjr opened this issue 4 years ago • 11 comments

Adds a new property called "alwaysFocusFirstMenuOption" that makes it possible to keep focus on the first item when the list of options is changed. An example can be seen below:

  • Without prop: ezgif com-gif-maker

  • With prop: ezgif com-gif-maker (1)

andersonmfjr avatar Jul 20 '21 19:07 andersonmfjr

⚠️ No Changeset found

Latest commit: c960bdf11ffbaeecef6d72f5fd76fcb1c2eb3ede

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

changeset-bot[bot] avatar Jul 20 '21 19:07 changeset-bot[bot]

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.

Latest deployment of this branch, based on commit c960bdf11ffbaeecef6d72f5fd76fcb1c2eb3ede:

Sandbox Source
react-codesandboxer-example Configuration

codesandbox-ci[bot] avatar Jul 20 '21 20:07 codesandbox-ci[bot]

Is this one similar to the request of https://github.com/JedWatson/react-select/pull/4080?

Is this one going to be merged into master soon?

Annie-Huang avatar Jun 02 '22 04:06 Annie-Huang

This PR (open for 1 year) and #4080 (open for 2 years) fix the same thing, that currently cannot be worked around. It would be extremely cool to finally merge this one. The solution is simple and elegant but nobody is merging anything.

Pinging @andrevitalb because I saw recent commit/merge activity from you. Do you think you can help? Thanks! :)

stnwk avatar Jul 28 '22 15:07 stnwk

This PR (open for 1 year) and #4080 (open for 2 years) fix the same thing, that currently cannot be worked around. It would be extremely cool to finally merge this one. The solution is simple and elegant but nobody is merging anything.

Pinging @andrevitalb because I saw recent commit/merge activity from you. Do you think you can help? Thanks! :)

@stnwk I'm just able to add reviews, don't have write access, We still need @JedWatson for that.

andrevitalb avatar Jul 28 '22 19:07 andrevitalb

Oh, thanks for your time and work anyways! Hopefully we can move forward here

stnwk avatar Jul 28 '22 20:07 stnwk

@andrevitalb can you review again? any chance of the functionality being merged? thanks for your time

andersonmfjr avatar Aug 19 '22 17:08 andersonmfjr

@andrevitalb can you review again? any chance of the functionality being merged? thanks for your time

@andersonmfjr I don't have any write permissions for the repo. We'd have to wait for @JedWatson's approval

andrevitalb avatar Aug 23 '22 16:08 andrevitalb

@andersonmfjr thanks for the pull request, but I wonder, maybe the more sustainable approach here (for the library and maintainers) is to only support 1 behaviour, and then encourage consumers to control the component themselves if they need something else.

Related

  • https://github.com/JedWatson/react-select/pull/4080

dcousens avatar Oct 31 '22 00:10 dcousens

@andersonmfjr thanks for the pull request, but I wonder, maybe the more sustainable approach here (for the library and maintainers) is to only support 1 behaviour, and then encourage consumers to control the component themselves if they need something else.

Related

Do you think it is possible to achieve this same behavior with the components control?

In the related PR it only shows that workarounds were done. And apparently they didn't work out so well.

andersonmfjr avatar Oct 31 '22 11:10 andersonmfjr

@JedWatson can we please merge this, if possible? Lot of people are requesting for this feature and we don't want to do unnecessarily complex workarounds

PratikAwaik avatar Feb 12 '25 00:02 PratikAwaik