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

Calendar doesn't update on changing properties such as showCustomRangeLabel #28

Open
sheoranpranava91 opened this issue Mar 12, 2019 · 1 comment

Comments

@sheoranpranava91
Copy link

Usecase: I need to display the calendar on 2 different pages in a web application with different options. One page shows the full calendar with showCustomRangeLabel and alwaysShowCalendars set to true. The other page just shows the calendar with some predefined ranges by setting showCustomRangeLabel and alwaysShowCalendars set to false.

Problem: The calendar doesn't update when I switch between pages. I verified that I am passing the correct options to the calendar

How to reproduce:
One way to verify what I am saying is by following the steps below

Start a timer and toggle alwaysShowCalendars and showCustomRangeLabel passed to react-bootstrap-timepicker every few seconds.
You will see that the calendar doesn't display correctly according to the values passed to it

@almike
Copy link

almike commented Mar 14, 2019

yeah we have the same problem, calling .initializeDateRangePicker on the existing picker seems to solve the issue

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

No branches or pull requests

2 participants