-
Notifications
You must be signed in to change notification settings - Fork 19
IBX-10653: flatpickr doesn't save seconds (unless minutes or other elements are changed afterwards) #1747
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
base: 4.6
Are you sure you want to change the base?
Conversation
4c2bd05 to
f27d459
Compare
src/bundle/Resources/public/js/scripts/core/date.time.picker.js
Outdated
Show resolved
Hide resolved
src/bundle/Resources/public/js/scripts/core/date.time.picker.js
Outdated
Show resolved
Hide resolved
src/bundle/Resources/public/js/scripts/core/date.time.picker.js
Outdated
Show resolved
Hide resolved
7ab63d4 to
f818f66
Compare
|
| this.flatpickrInstance.hourElement.addEventListener('keyup', this.onKeyUp.bind(this, false), false); | ||
| this.flatpickrInstance.hourElement.addEventListener('keyup', this.onKeyUp.bind(this, 'hours'), false); | ||
| this.flatpickrInstance.minuteElement.addEventListener('keyup', this.onKeyUp.bind(this, 'minutes'), false); | ||
| if (this.flatpickrInstance.secondElement !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI : I also had to add this check as the existences of the secondElement is dependent on config: https://github.com/ibexa/admin-ui-assets/blob/v4.6.25/src/bundle/Resources/public/vendors/flatpickr/dist/esm/index.js#L722-L725
|
@GrabowskiM : Are you also okay with this PR now ? |
yeah, really sorry for missing this message! Approved! :) |
0bf1fc0 to
f818f66
Compare
…ements are changed afterwards)
Co-authored-by: Michał Grabowski <michal.grabowski@ibexa.co>
…ther elements are changed afterwards)
f818f66 to
5f59b47
Compare
|



Description:
Event listener for
secondelement missing, causing seconds not to be saved in the pickerFor QA:
Documentation: