Semantic-Org/Semantic-UI-React
View on GitHubRFC: Popup more intuitive behavior with multiple `on` events
Open
#2765 opened on May 5, 2018
enhancementhelp wanted
Description
Bug Report
The problem happens when using multiple events to trigger Popup.
Can be reproduced with <Popup trigger={<button>Show tooltip</button>} content='tooltip' on={['click', 'hover']} but the easiest way is with <Popup trigger={<button>Show tooltip</button>} content='tooltip' on={['click', 'focus']}.
Just try clicking the button. For the first time, it opens the popup and immediately closes it. Following clicks work correctly.
This problem has been mentioned in #2075 by @austinfox here.
Steps
- Go to Semantic UI React Popup demo.
- Edit e.g. first example
Popupcomponent to contain multiple on events i.e.on={['click', 'focus']}. - Click the popup trigger.
Expected Result
Popup is displayed and stays open.
Actual Result
Popup is displayed and closed immediately.
Version
0.80.0
Testcase
Check the steps section above.