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

后端 未结 8 1169
执笔经年
执笔经年 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)
    

提交回复
热议问题