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

Fix the close datepicker with no update situation when manually typing time #2668

Open
wants to merge 3 commits into
base: 3.x
Choose a base branch
from

Conversation

alextepes
Copy link

Description

Fixes a datepicker problem occurring when manually typing the time.

Related Issues

Fixes #2667

@CLAassistant
Copy link

CLAassistant commented Oct 15, 2024

CLA assistant check
All committers have signed the CLA.

@alextepes alextepes changed the title Update the data before emitting the input and close events Fixes the close datepicker with no update situation when manually typing time Oct 16, 2024
@alextepes alextepes changed the title Fixes the close datepicker with no update situation when manually typing time Fix the close datepicker with no update situation when manually typing time Oct 16, 2024
@@ -178,6 +178,7 @@
},
onClose: function (selectedDates, dateStr, instance) {
self.$nextTick(function () { // wait for the datepicker to properly update the UI
self.date = dateStr;
Copy link
Contributor

@Tofandel Tofandel Dec 3, 2024

Choose a reason for hiding this comment

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

I think it would make more sense to maybe call this.saveIntoStore onBlur if this.disabled is false

Copy link
Contributor

@Tofandel Tofandel Dec 3, 2024

Choose a reason for hiding this comment

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

After testing myself, the onBlur method is never called and this does seem to be the only reliable fix

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.

Datepicker not updating the state on close
3 participants