Skip to content

Conversation

@vidarl
Copy link
Contributor

@vidarl vidarl commented Oct 17, 2025

🎫 Issue IBX-10653

Description:

Event listener for second element missing, causing seconds not to be saved in the picker

For QA:

Documentation:

@vidarl vidarl force-pushed the IBX-10653_flatpickr_doesnt_save_seconds_unless_minutes_or_other_elements_are_changed_afterwards branch from 4c2bd05 to f27d459 Compare October 17, 2025 09:14
@vidarl vidarl force-pushed the IBX-10653_flatpickr_doesnt_save_seconds_unless_minutes_or_other_elements_are_changed_afterwards branch from 7ab63d4 to f818f66 Compare November 6, 2025 09:06
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 6, 2025

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) {
Copy link
Contributor Author

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

@vidarl vidarl requested a review from GrabowskiM November 6, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants