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: undefined representation as empty in string components #2727

Merged
merged 8 commits into from
Sep 18, 2024

Conversation

krissvaa
Copy link
Contributor

@krissvaa krissvaa commented Sep 12, 2024

For non Vaadin components - fix undefined value representation

Fixes #2658

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.53%. Comparing base (1bed622) to head (ce5e96b).
Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2727   +/-   ##
=======================================
  Coverage   94.52%   94.53%           
=======================================
  Files          81       81           
  Lines        2629     2633    +4     
  Branches      678      680    +2     
=======================================
+ Hits         2485     2489    +4     
  Misses        140      140           
  Partials        4        4           
Flag Coverage Δ
unittests 94.53% <100.00%> (+<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.

@krissvaa krissvaa requested a review from taefi September 18, 2024 10:29
taefi
taefi previously requested changes Sep 18, 2024
Copy link
Contributor

@taefi taefi left a comment

Choose a reason for hiding this comment

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

Minor: I'd prefer avoiding the .rendered unnecessarily when checking the value directly.
Otherwise, LGTM!

packages/ts/lit-form/test/Field.test.ts Outdated Show resolved Hide resolved
krissvaa and others added 4 commits September 18, 2024 16:27
Copy link

sonarcloud bot commented Sep 18, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
16.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@platosha platosha merged commit 4125dac into main Sep 18, 2024
14 of 15 checks passed
@platosha platosha deleted the fix/input-field-undefined branch September 18, 2024 15:33
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Hilla 24.5.0.beta2 and is also targeting the upcoming stable 24.5.0 version.

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.

Form Binding (FirstNameComponent example) renders "undefined", crashes with nullable fields
4 participants