How can I make react-bootstrap's Dropdown open on mouse hover?

后端 未结 7 1791
-上瘾入骨i
-上瘾入骨i 2020-12-15 19:40

Ok the question is simple. I need to make the dropdown open when mouse hover rather than on click.

Currently my code is as follow.

    
相关标签:
7条回答
  • 2020-12-15 20:05

    base on the answer of @Rei Dien

       onMouseEnter = { this.handleOpen.bind(this) }
       onMouseLeave = { this.handleClose.bind(this) }
    
    0 讨论(0)
提交回复
热议问题