Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

reactjs - Material-ui popup state popover not working

I used material-ui-popup-state package to add customised menus on my header. I'm using code similar to the code in the documentation. The difference is only in the content of the popover. Mine has a few cards in the content and some styling for the background. There are two of these popovers in my header each with its own trigger.

The problem is that the popover does not behave as expected at all times and closes when the user hovers on the content of the popover. The behaviour is not consistent and is intermittent. One pattern I observed is that this happens most often when one moves from content of one popover to the button that triggers the other one.

Is this a known issue, is there any work-around?

Sample code


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...