Skip to content

fix: add sameDayFullRange prop to allow valid time range for same day queries [MA-4646]#3070

Open
jordojordo wants to merge 2 commits intomainfrom
fix/ma-4646
Open

fix: add sameDayFullRange prop to allow valid time range for same day queries [MA-4646]#3070
jordojordo wants to merge 2 commits intomainfrom
fix/ma-4646

Conversation

@jordojordo
Copy link
Member

@jordojordo jordojordo commented Jan 21, 2026

Fix MA-4646

Summary

This will add a new prop (sameDayFullRange) to the KDateTimePicker and CalendarWrapper components to allow for valid time ranges when a user selects the same day for a start and end time.

When enabled and the same date is chosen for the start and end, the time range will automatically be adjusted to 12:00 am to 11:59 pm of the same day, as opposed to the 12:00 am and 12:00 am for both start and end times.

Another callback prop has been added customValidationRange which will allow for custom validation of start and end times to disable the "Apply" button in KDateTimePicker.

This also refactors a little bit of repeated and messy type guarding within the CalendarWrapper.

@netlify
Copy link

netlify bot commented Jan 21, 2026

Deploy Preview for kongponents-sandbox ready!

Name Link
🔨 Latest commit b4b14e9
🔍 Latest deploy log https://app.netlify.com/projects/kongponents-sandbox/deploys/698352ecd1945e0008cfc8bf
😎 Deploy Preview https://deploy-preview-3070--kongponents-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 21, 2026

Deploy Preview for kongponents ready!

Name Link
🔨 Latest commit b4b14e9
🔍 Latest deploy log https://app.netlify.com/projects/kongponents/deploys/698352ec34f2cf0008a30532
😎 Deploy Preview https://deploy-preview-3070--kongponents.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kongponents-bot
Copy link
Collaborator

Preview package from this PR in consuming application

In consuming application project install preview version of kongponents generated by this PR:

@kong/kongponents@pr-3070

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