Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Dropdown): closeOnBlur={false} does not work #1998

Merged
merged 1 commit into from
Aug 27, 2017
Merged

fix(Dropdown): closeOnBlur={false} does not work #1998

merged 1 commit into from
Aug 27, 2017

Conversation

lottamus
Copy link
Contributor

@lottamus lottamus commented Aug 23, 2017

fix(Dropdown): Don't add an event listener for document clicks if closeOnBlur is falsey
test(Dropdown): add a test for closeOnBlur={false}

fixes #1995

@codecov-io
Copy link

codecov-io commented Aug 23, 2017

Codecov Report

Merging #1998 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1998      +/-   ##
=========================================
+ Coverage    99.8%   99.8%   +<.01%     
=========================================
  Files         148     148              
  Lines        2556    2557       +1     
=========================================
+ Hits         2551    2552       +1     
  Misses          5       5
Impacted Files Coverage Δ
src/modules/Dropdown/Dropdown.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3544d5a...4a37bfa. Read the comment docs.

Copy link
Member

@layershifter layershifter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChrisNLott Thanks for PR!

Let's handle closeOnBlur prop inside closeOnDocumentClick handler

fix(Dropdown): remove event listener if closeOnBlur={false}
test(Dropdown): add a test for closeOnBlur={false}

fixes #1995
@levithomason
Copy link
Member

Fixed conflicts and rebased to latest master. Will merge on pass, thanks!

@levithomason levithomason merged commit b123a10 into Semantic-Org:master Aug 27, 2017
@levithomason
Copy link
Member

Released in semantic-ui-react@0.72.0

@lottamus lottamus deleted the fix-close-on-blur branch August 28, 2017 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

closeOnBlur={false} doesn't work
4 participants