Skip to content

Calendar: Cannot clear invalid value more than once with keepInvalid=true #17647

Open
@JasonMerseItemis

Description

@JasonMerseItemis

Describe the bug

When using keepInvalid=true and writing an invalid date, the clear button works the first time but every subsequent click on the clear button has no effect when the input is invalid.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/github-eps8r4ln-5w3sp3b7?file=src%2Fapp%2Fapp.component.html

Environment

See Stackblitz

Angular version

19.1.5

PrimeNG version

v19

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

  1. input invalid date ("abc")
  2. press clear icon
  3. input invalid date again
  4. press clear icon

Expected behavior

The invalid input value should be cleared again.

Metadata

Metadata

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

Status

Review

Relationships

None yet

Development

No branches or pull requests

Issue actions