React-select: How to keep menu closed after selecting a value when multiselect?

Created on 29 Sep 2016  路  2Comments  路  Source: JedWatson/react-select

Hi, first, thanks for a great component!

I would like the menu to be closed, after I have selected a value in multi select. Is that possible? I have tried scrollMenuIntoView={false} and openOnFocus={false} without success.

Thanks
/Torbj枚rn

Most helpful comment

To close the whole control, you can keep a ref to the Select and call this.refs.select.closeMenu().

All 2 comments

To close the whole control, you can keep a ref to the Select and call this.refs.select.closeMenu().

Thanks @DanielHeath, it solved my problem.

Was this page helpful?
0 / 5 - 0 ratings