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

MANTINE-6336: Fix DateInput to setInputValue to _value which has time zone applied #6517

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

Sergio16T
Copy link
Contributor

@Sergio16T Sergio16T commented Jul 12, 2024

Fixes #6336

Reviewed code and discovered that the useDidUpdate hook was not setting the state value with timezone when applicable.

Before: It was running and setting the inputValue to the initial onChange Value without applying the updates from the useUncontrolledDates Hook.

After: _value is the source of truth to display in input and will display with updates applied by useUncontrolledDates Hook.

@Sergio16T Sergio16T changed the title MANTINE-6336: Fix DateInput to setInputValue to _value which has time… MANTINE-6336: Fix DateInput to setInputValue to _value which has time zone applied Jul 12, 2024
@rtivital rtivital merged commit 6b4e088 into mantinedev:master Jul 13, 2024
@rtivital
Copy link
Member

Thanks!

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.

DateInput flickers the wrong date when used with timezones.
2 participants