How can i use react-select to scroll to the selected option?
<Select
matchProp='label'
classes={classes}
inputId="react-select-single"
TextFieldProps={{
InputLabelProps: {
htmlFor: 'react-select-single',
shrink: true,
},
disableUnderline: true
}}
options={options}
components={components}
value={single}
onChange={handleChangeSingle}
/>
You can use the react-select property,
menuShouldScrollIntoView={true}
Thank you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With