Skip to content

fix: TimeInput not triggering onChange on incomplete values#1711

Merged
vbabich merged 3 commits intodeephaven:mainfrom
vbabich:fix-timeinput-onchange
Jan 11, 2024
Merged

fix: TimeInput not triggering onChange on incomplete values#1711
vbabich merged 3 commits intodeephaven:mainfrom
vbabich:fix-timeinput-onchange

Conversation

@vbabich
Copy link
Copy Markdown
Collaborator

@vbabich vbabich commented Jan 5, 2024

Update TimeInput to trigger onChange on incomplete input values, missing chars filled in with zeros. Update internal/displayed value on blur to match the last onChange.

fixes #1710

@vbabich vbabich self-assigned this Jan 5, 2024
@vbabich vbabich enabled auto-merge (squash) January 5, 2024 18:15
@vbabich vbabich requested a review from mofojed January 5, 2024 18:15
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 5, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (73e1837) 46.44% compared to head (8295b5a) 46.46%.

Files Patch % Lines
packages/components/src/TimeInput.tsx 94.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1711      +/-   ##
==========================================
+ Coverage   46.44%   46.46%   +0.01%     
==========================================
  Files         611      611              
  Lines       37204    37217      +13     
  Branches     9363     9365       +2     
==========================================
+ Hits        17279    17292      +13     
  Misses      19871    19871              
  Partials       54       54              
Flag Coverage Δ
unit 46.46% <94.73%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vbabich vbabich disabled auto-merge January 5, 2024 18:51
@vbabich vbabich merged commit 6894d96 into deephaven:main Jan 11, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 11, 2024
@vbabich vbabich deleted the fix-timeinput-onchange branch January 11, 2024 18:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TimeInput doesn't trigger onChange for incomplete input values

2 participants