25 questions
1
vote
1
answer
130
views
React select option update giving [object Promise]
I am using React Select in my code and trying to update options on the basis of Input but however I am facing issue as [object Promise] as value in Input even after touching the Select Box Below is my ...
0
votes
1
answer
78
views
react select library select component take first value as select option default in tab press navigation case
when we use react select in our project and we navigate or focus on it using tab at that time drop down menu is open than next when we press tab key and navigate to other component at that time it is ...
0
votes
1
answer
111
views
how to set the all my option as selected by default and all option values should be displayed in the field in react select in multiselect
<Select
components={animatedComponents}
isMulti
defaultValue={selectedClassOptions}
value={selectedClassOptions}
options={classOptions}
onChange={(...
-2
votes
1
answer
822
views
Getting a typescript error in react-select
i am getting a typescript type error in react-select options parameter in the componenet,
ERROR:
Type 'readonly optionType[] | undefined' is not assignable to type 'OptionsOrGroups<string, ...
1
vote
1
answer
362
views
Enable React-Select option to persist during search?
I am attempting to make the first and last option in my react-select component always display in the list. I don't want it to be filtered out during search. Is there a way to eliminate an item from ...
1
vote
0
answers
61
views
React-select value not showing in searchParams or the request
I'm new to react so please excuse if this is a silly doubt..
I'm trying to implement react-select in my form, but the selected option is not showing up in my url as a selectParam.
I want to access the ...
0
votes
1
answer
995
views
Getting the onchange text in react-select search component
I am trying to get search select functionality in my page using the react select search npm package.
my parent component
import React, { Component } from "react";
import Task from "./...
2
votes
1
answer
643
views
react-select, AsyncSelect only able to select one option even i added isMulti after that it display no options
I can select first option successfully, but after that it doesn't display any option, can't add second option and I even added isMulti.
import React from "react";
import AsyncSelect from &...
1
vote
0
answers
441
views
Editing a selected item in an AsyncSelect
I Have a form with AsyncCreatable fields and they are clearable however the ask is that once a user has typed in some text and selected an item that the user should be able to go into the field and ...
0
votes
2
answers
269
views
How to Fix width of the react select search box
I have tried almost all answers but that is not working to get the width of react select fix sized.
It keeps on increasing as soon as I select options. Can anyone please help me to solve this problem.
...
0
votes
1
answer
932
views
adding 2 keys for react-select search filter
I am using react select in my react app same like below
when i use 'labelKey={'staffName'}' to get the key from api to search.
so when I use like above its showing the output perfectly.
what I am ...
2
votes
0
answers
886
views
Loosing search and tab accessibility in valueContainer after using custom ValueContainer in react-select
I needed a dropdown with multiple rows of text like this:
I used react-select with custom components:
import Select from 'react-select';
import DropDownOptions from './DropDownOptions';
import ...
5
votes
2
answers
18k
views
React select remove selected option on search
is there a way to always show the selected option on the menu even after searching for some thing else
here is the code I used
import React from "react";
import Select from "react-...
2
votes
2
answers
8k
views
Show the selected option as the first option in the select dropdown?
I am using react-select to show a list of users in a dropdown. I want it to always show the selected element as the first element in the list. Is there native support for this?
Example:
In the ...
0
votes
1
answer
6k
views
how to create dropdown in react with icon
Hi i want to create a dropDown in react with each item having an icon. As i tried react-select but its not showing the icon ,and also the selected value .When i remove value prop from react-select ...