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

MultiSelect width

Open Shamsa-Ali opened this issue 2 years ago • 1 comments

Describe the bug hi there, I don't know if it's a bug or I'm doing something wrong. But I need help with the width of the MultiSelect. If I don't select any value the width of the field is small but as I keep selecting values from the dropdown, the width keeps increasing. I just want the width to be fixed. Anyone, any help would be great.. please the first screenshot is when no values are selected, and the second screenshot is when all values are selected except 1 and the last screenshot is when all value are selected .. you can notice the widths image image image this is the code

<div
                        style={{width:"80%"}}
                      >
                        <MultiSelect
                        className='w-80'
                        label='Select Product'
                        options={productOptions1}
                        value={product1}
                        onChange={setProduct1}
                        isClearable={true}
                        labelledBy="Select"
                        invalid={true}
                        autosize={false}
                        
                    />  
                      </div>

Shamsa-Ali avatar Sep 14 '23 14:09 Shamsa-Ali

Describe the bug hi there, I don't know if it's a bug or I'm doing something wrong. But I need help with the width of the MultiSelect. If I don't select any value the width of the field is small but as I keep selecting values from the dropdown, the width keeps increasing. I just want the width to be fixed. Anyone, any help would be great.. please the first screenshot is when no values are selected, and the second screenshot is when all values are selected except 1 and the last screenshot is when all value are selected .. you can notice the widths image image image this is the code

<div
                        style={{width:"80%"}}
                      >
                        <MultiSelect
                        className='w-80'
                        label='Select Product'
                        options={productOptions1}
                        value={product1}
                        onChange={setProduct1}
                        isClearable={true}
                        labelledBy="Select"
                        invalid={true}
                        autosize={false}
                        
                    />  
                      </div>

Applying "max-width" may help you.

MuhammadRehanRasool avatar Nov 25 '23 11:11 MuhammadRehanRasool