Skip to content

DBInput: inserting an empty string doesn't empty date form fields #5439

@mfranzke

Description

@mfranzke

Which generators are affected?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

Take for example a setup like https://codesandbox.io/p/devbox/romantic-shamir-yfqqqq?file=%2Fsrc%2Fapp%2Fapp.component.html%3A3%2C9 in which we've integrated a DBInput component of type date. Setting another value works fine, but providing the empty string as a new value doesn't empty/reset this component.

Expected Behaviour

When providing an empty string, the field should be empty.

Screenshots

No response

Browser version

None

Add any other context about the problem here.

The previous implementation with PR #3830 to fix #3574 seems to include a condition which we should refactor for more resilience.

Which DB business unit do you work for?

DB Systel GmbH (please name your customer below)

”DB Systel” please enter your customer / ”other” please enter your area or business unit.

DB UX Design System

What project are you working on?

DB UX Design System

Metadata

Metadata

Assignees

Type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions