How to automatically scroll to top on react-select change

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to automatically scroll to top on react-select change



enter image description here



I am currently using react-select v1. The problem that I am currently facing is that if I go by default behaviour then if I choose North Dakota then the scrollbar and the highlight automatically moves to the next option that is Northern Mariana Islands. Instead what I want is that it should move to the top of the dropdown after the selection.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard