react-select: how to keep dropdown open when styling in inspector?

后端 未结 8 1163
执笔经年
执笔经年 2021-02-01 03:24

I\'m using react-select and I\'m customizing it,I didn\'t found an option to do this. Is there some workaround I can use to keep dropdown open when I\'m styling it?

8条回答
  •  有刺的猬
    2021-02-01 04:21

    By using the Chrome React extension, you can force the "isOpen" (v3: "menuIsOpen") state value to true on the Select component.

    more info here: https://github.com/JedWatson/react-select/issues/927#issuecomment-313022873

提交回复
热议问题