multiselect-react-dropdown icon indicating copy to clipboard operation
multiselect-react-dropdown copied to clipboard

Dropdown not closing after selection

Open edu1525 opened this issue 2 years ago • 9 comments

Even if I set closeOnSelect={true} the dropdown doesn't close and the user needs to click outside the dropdown to close it.

edu1525 avatar Jun 20 '22 02:06 edu1525

This is my component

<Multiselect options={this.state.cities} // Options to display in the dropdown onSearch={this.onTextChanged} selectedValues={this.state.selectedCity} // Preselected value to persist in dropdown onSelect={(result) => this.props.onCitySelected(result[0])} // Function will trigger on select event onRemove={this.props.onCityRemoved} // Function will trigger on remove event displayValue="name" // Property name to display in the dropdown options placeholder="Digite o nome da cidade" emptyRecordMsg="Nenhuma cidade encontrada" hidePlaceholder={true} closeOnSelect={true} disablePreSelectedValues={false} selectionLimit={1} className={this.props.className} style={{chips: {background: '#F31755'}, ...this.props.style}} />

edu1525 avatar Jun 20 '22 02:06 edu1525

+1 to this issue

cameronnolley avatar Jun 30 '22 17:06 cameronnolley

+1 to this issue !

silsanchez avatar Aug 01 '22 21:08 silsanchez

@edu1525 @silsanchez @cameronnolley Any update on this?

virendrak-dev avatar Sep 05 '22 14:09 virendrak-dev

+1 to this issue

omar-101 avatar Dec 11 '22 17:12 omar-101

Facing the same issue. Any update on the same.

Siddharth-RWS avatar Feb 20 '23 11:02 Siddharth-RWS

closeOnSelect doesn't work

alacret avatar May 18 '23 13:05 alacret

issue is still unresolved, any fix?

DMWH-MODOM avatar Sep 26 '23 18:09 DMWH-MODOM

do we have any update on this ?

umang-mobikasa avatar Nov 28 '23 07:11 umang-mobikasa