Skip to content

Comments

refactor(date-attribute): replace native date time input with flatpickr#1076

Merged
JohnVillalovos merged 1 commit intodevelopfrom
jlvillal/flat1
Feb 24, 2026
Merged

refactor(date-attribute): replace native date time input with flatpickr#1076
JohnVillalovos merged 1 commit intodevelopfrom
jlvillal/flat1

Conversation

@JohnVillalovos
Copy link
Collaborator

  • Add d-block class to label for better spacing
  • Change input type to text to use flatpickr
  • Remove hidden formatted input and explicit formatdate value
  • Pass the attribute value as DefaultDate to DatePickerSetupControl (HasTimepicker remains true)

Copilot AI review requested due to automatic review settings February 23, 2026 00:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors the custom attribute datetime input UI to use the Flatpickr-backed DatePickerSetupControl instead of the native datetime-local input, improving layout and aiming for consistent date picking behavior across browsers.

Changes:

  • Adds Bootstrap d-block to the attribute label for improved spacing.
  • Switches the datetime input from datetime-local to text to support Flatpickr.
  • Removes the hidden “formatted” input and instead passes the attribute value via DefaultDate into DatePickerSetupControl.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

- Add d-block class to label for better spacing
- Change input type to text to use flatpickr
- Remove hidden formatted input and explicit formatdate value
- Pass the attribute value as DefaultDate to DatePickerSetupControl (HasTimepicker remains true)
Copy link
Collaborator Author

@JohnVillalovos JohnVillalovos left a comment

Choose a reason for hiding this comment

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

Thanks @labmecanicatec

LGTM

@JohnVillalovos JohnVillalovos enabled auto-merge (rebase) February 24, 2026 17:16
@JohnVillalovos JohnVillalovos merged commit 63465be into develop Feb 24, 2026
15 checks passed
@JohnVillalovos JohnVillalovos deleted the jlvillal/flat1 branch February 24, 2026 17:17
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.

2 participants