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

后端 未结 8 1165
执笔经年
执笔经年 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:16

    Simple hack goes this way

    Run this command on your console open the menu and then wait for 5 seconds and the debugger will automatically be applied and screen will be freezed.

    setTimeout(() => {debugger;}, 5000)
    
    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题