Skip to content
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

fix(DateField): Fixed segement initialization in DateField parser util to not include… #1450

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TristanMNorton
Copy link

@TristanMNorton TristanMNorton commented Nov 22, 2024

Noticed a bug when using DateField, or other components that leverage DateField such as DatePicker where the modelValue wouldn't update appropriately when fully entered if granularity is set to minute or hour.

When setting granularity to minute for instance, the DateField's parser util still includes second as a segment when using initializeSegmentValues. This prevents handleSegmentKeydown from ever setting the modelValue since there's always at least one null value.

Happy to adjust this change based on any feedback.

… certain segments when granularity is set to minute or hour
@TristanMNorton TristanMNorton changed the title Fixed segement initialization in DateField parser util to not include… fix: (DateField) Fixed segement initialization in DateField parser util to not include… Nov 22, 2024
@TristanMNorton TristanMNorton changed the title fix: (DateField) Fixed segement initialization in DateField parser util to not include… fix(DateField): Fixed segement initialization in DateField parser util to not include… Nov 22, 2024
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.

1 participant