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

[datetime2] fix(DateInput2): display updated timezone immediately #5718

Merged
merged 2 commits into from
Nov 6, 2022

Conversation

adidahiya
Copy link
Contributor

Fixes #5714

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Fix renderTarget dependency list so that the timezone displayed inside DateInput2 is updated immediately after changing it via the TimezoneSelect.

The fact that we have to do this is a sign that React hooks are kind of lame.

Reviewers should focus on:

No regressions

Screenshot

@blueprint-bot
Copy link

[datetime2] fix(DateInput2): display updated timezone immediately

Previews: documentation | landing | table | demo

@blueprint-bot
Copy link

Update packages/datetime2/test/components/dateInput2Tests.tsx

Previews: documentation | landing | table | demo

@adidahiya adidahiya merged commit d2a98c3 into develop Nov 6, 2022
@adidahiya adidahiya deleted the ad/fix-dateinput2-tz-render branch November 6, 2022 04:21
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.

DateInput2 timezone does not update until popover is opened again
2 participants