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
@vidarl
Copy link
Contributor Author

vidarl commented Nov 18, 2025

@GrabowskiM : Are you also okay with this PR now ?

@GrabowskiM
Copy link
Contributor

@GrabowskiM : Are you also okay with this PR now ?

yeah, really sorry for missing this message! Approved! :)

@pawlakadrian pawlakadrian force-pushed the IBX-10653_flatpickr_doesnt_save_seconds_unless_minutes_or_other_elements_are_changed_afterwards branch 2 times, most recently from f818f66 to 5f59b47 Compare January 21, 2026 13:03
@pawlakadrian pawlakadrian self-requested a review January 28, 2026 07:13
Copy link
Contributor

@pawlakadrian pawlakadrian left a comment

Choose a reason for hiding this comment

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

QA Approved on DXP Commerce 4.6.x-dev

@vidarl vidarl force-pushed the IBX-10653_flatpickr_doesnt_save_seconds_unless_minutes_or_other_elements_are_changed_afterwards branch from f8965a6 to 1682966 Compare January 28, 2026 12:05
@sonarqubecloud
Copy link

@dew326 dew326 merged commit b8ca5f0 into 4.6 Jan 28, 2026
28 checks passed
@dew326 dew326 deleted the IBX-10653_flatpickr_doesnt_save_seconds_unless_minutes_or_other_elements_are_changed_afterwards branch January 28, 2026 14:08
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.

8 participants