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

feat(ui5-datetime-picker): make change events preventable #5286

Merged
merged 6 commits into from Jun 10, 2022

Conversation

tsanislavgatev
Copy link
Contributor

@tsanislavgatev tsanislavgatev commented May 27, 2022

fixes: #4684
fixes: #5121

@unazko unazko self-requested a review May 30, 2022 15:10
Copy link
Contributor

@unazko unazko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The solution seems to work fine for the ui5-datetime-picker.
Only thing I noticed (not absolutely sure it is related to the current changes) - the getSelectedDateTime could throw a console error as the selectedTime variable might result to null. Think we should reinforce this with a check.

Copy link
Contributor

@unazko unazko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@tsanislavgatev tsanislavgatev merged commit 7395dc3 into main Jun 10, 2022
@tsanislavgatev tsanislavgatev deleted the dtp-event-preventable branch June 10, 2022 11:19
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.

DateTimePicker : Error state not updating ui5-datetime-picker: "Error" value-state cleared on change
3 participants