Semantic-Org/Semantic-UI-React

Search: preventing event bubbling leading to unexpected behaviour

Open

#3118 opened on Aug 29, 2018

View on GitHub
 (7 comments) (0 reactions) (0 assignees)JavaScript (13,136 stars) (4,065 forks)batch import
bughelp wantedstale

Description

Bug Report

Steps

Render any other component which is normally expected to close when clicked outside (e.g. Popup) Click on Search component The other component (e.g. Popup) does not close on clicking on Search component

Expected Result

Other components (e.g Popup) that rely on window onclick listener to close when clicked outside its area must be able to close

Actual Result

Search component prevents event bubbling and other components (e.g Popup) are not closed when clicking on Search component

Version

0.82.3

Testcase

CodeSandbox to replicate the issue

Contributor guide