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

Downgrade lodash to 3.10 #1299

Closed
wants to merge 1 commit into from
Closed

Downgrade lodash to 3.10 #1299

wants to merge 1 commit into from

Conversation

nathanstitt
Copy link
Member

@nathanstitt nathanstitt commented Aug 20, 2016

NOTE: this also happened in #1027 (insert witty comment about frailty of memory here)

Upgrading to version 4.x breaks the calendar. It's getEventHandlers
uses _.pick with a funtion on props to select the valid props.

Lodash 4.x has removed the ability to use a function with _.pick, and
requires the use of _.pickBy for that.

Because of this, the onClick prop isn't passed to the Day component and
days cannot be clicked.

Upgrading to version 4.x breaks the calendar.  It's getEventHandlers
uses _.pick with a funtion on props to select the valid props.

Lodash 4.x has removed the ability to use a function with _.pick, and
requires the use of _.pickBy for that.

Because of this, the onClick prop isn't passed to the Day component and
days cannot be clicked.
@nathanstitt
Copy link
Member Author

Closing since the issue was that react-calendar wasn't installing it's sub-dependency on lodash correctly. #1300 added to perform checks while building

@nathanstitt nathanstitt deleted the lodash-downgrade branch August 22, 2016 17:15
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

1 participant