Skip to content

Conversation

@mmarkelov
Copy link
Contributor

Close #1993
Cause renderMonthText is need to be function, comparing two function will be always false, so it will make unnecessary setState for monthTitleHeight: https://github.com/airbnb/react-dates/blob/480b9902d69e64e62a2ef5c2d3b5fc3adef94444/src/components/DayPicker.jsx#L342-L346

@ljharb ljharb changed the title Fix DayPicker check for renderMonthText [Fix] DayPicker: check for renderMonthText when recomputing height Oct 17, 2020
@ljharb ljharb added the semver-patch: fixes/refactors/etc Anything that's not major or minor. label Oct 17, 2020
@ljharb ljharb force-pushed the Fix-DayPicker-check-for-renderMonthText branch from e170895 to 624aef1 Compare October 18, 2020 02:12
@ljharb ljharb merged commit 624aef1 into react-dates:master Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-patch: fixes/refactors/etc Anything that's not major or minor.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

renderMonthText prop makes the calendar invisible

2 participants