Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown not closing after selection #216

Open
edu1525 opened this issue Jun 20, 2022 · 9 comments
Open

Dropdown not closing after selection #216

edu1525 opened this issue Jun 20, 2022 · 9 comments

Comments

@edu1525
Copy link

edu1525 commented Jun 20, 2022

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

@edu1525
Copy link
Author

edu1525 commented Jun 20, 2022

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}}
/>

@cameronnolley
Copy link

+1 to this issue

@silsanchez
Copy link

+1 to this issue !

@virendrak-dev
Copy link

@edu1525 @silsanchez @cameronnolley Any update on this?

@omar-101
Copy link

+1 to this issue

@Siddharth-RWS
Copy link

Facing the same issue. Any update on the same.

@alacret
Copy link

alacret commented May 18, 2023

closeOnSelect doesn't work

@DMWH-MODOM
Copy link

issue is still unresolved, any fix?

@umang-mobikasa
Copy link

do we have any update on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants