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: invalid text after cleaning via ngModel #14784

Closed
dbelob opened this issue Feb 11, 2024 · 0 comments
Closed

Dropdown: invalid text after cleaning via ngModel #14784

dbelob opened this issue Feb 11, 2024 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@dbelob
Copy link

dbelob commented Feb 11, 2024

Describe the bug

Text is not displayed correctly if you use the selectedItem template and clear the selected value via ngModel.
primeng-dropdown-clear-error-invalid

Environment

OS: Windows 8.1, Windows 10

Reproducer

https://stackblitz.com/github/dbelob/primeng-dropdown-clear-error

Angular version

17.1.3

PrimeNG version

17.6.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v20.11.0

Browser(s)

Chrome 120.0.6099.71, Firefox 120.0.1, Edge 120.0.2210.61

Steps to reproduce the behavior

  1. Select country from left dropdown (for example, 'Australia')
  2. Select city from right dropdown (for example, 'Sydney')
  3. Click Clear button: right dropdown will contain incorrect text ('Select a City' and 'Sydney')

The error is reproduced with static and dynamic value in the placeholder.

Expected behavior

After clicking Clear button the correct text should be 'Select a City'.

@dbelob dbelob added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 11, 2024
@cetincakiroglu cetincakiroglu added this to the 17.7.0 milestone Feb 12, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 12, 2024
@mehmetcetin01140 mehmetcetin01140 self-assigned this Feb 13, 2024
@cetincakiroglu cetincakiroglu self-assigned this Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants