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

Add closeOnScroll prop #2209

Merged
merged 3 commits into from
Jul 9, 2020
Merged

Conversation

mjchang
Copy link
Contributor

@mjchang mjchang commented Jul 1, 2020

Add closeOnScroll prop to enable. The prop accepts either a boolean or a function. If true, the datepicker will be closed when the document is scrolled. If function, then it executes the function to see whether the datepicker should be closed or not.

@codecov
Copy link

codecov bot commented Jul 1, 2020

Codecov Report

Merging #2209 into master will decrease coverage by 0.01%.
The diff coverage is 90.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2209      +/-   ##
==========================================
- Coverage   92.10%   92.09%   -0.02%     
==========================================
  Files          20       20              
  Lines        1242     1252      +10     
  Branches      324      330       +6     
==========================================
+ Hits         1144     1153       +9     
  Misses         40       40              
- Partials       58       59       +1     
Impacted Files Coverage Δ
src/index.jsx 87.54% <90.00%> (+0.09%) ⬆️

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 3102a90...b98123e. Read the comment docs.

@martijnrusschen
Copy link
Member

If you can help me resolving the merge conflicts, we can get this one merged.

@martijnrusschen martijnrusschen merged commit 8ec9341 into Hacker0x01:master Jul 9, 2020
@mjchang mjchang deleted the closeOnScroll branch July 9, 2020 07:03
@mjchang mjchang restored the closeOnScroll branch July 9, 2020 07:03
@mjchang mjchang deleted the closeOnScroll branch July 9, 2020 07:03
p-rogas pushed a commit to p-rogas/react-datepicker that referenced this pull request Mar 22, 2023
* Add closeOnScroll prop

* add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants