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

Dropdown/Select: Marked as dirty immediately, if no placeholder is set #17178

Open
4 tasks
johanneszelger opened this issue Dec 22, 2024 · 0 comments · May be fixed by #17179
Open
4 tasks

Dropdown/Select: Marked as dirty immediately, if no placeholder is set #17178

johanneszelger opened this issue Dec 22, 2024 · 0 comments · May be fixed by #17179
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@johanneszelger
Copy link
Contributor

Describe the bug

When no placeholder is set, for example when using floatlabel, the dropdown is dirty immediately upon loading.

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

See stackblity of select with float label in official documentation

Environment

Check official documentation select with floatlabel

Angular version

latest

PrimeNG version

v19

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

  • Open the stackblitz of select+float label
  • Remove the placeholder
  • Add any validator like required
  • reload the page
  • immedately the dropdown will be "red" as it is invalid and dirty

Expected behavior

Should not be dirty before being edited.

@johanneszelger johanneszelger added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant