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

With editableSearchTerm=true, ng-select is not visually cleared when model value is cleared (or updated) #2179

Open
earshinov opened this issue Dec 20, 2022 · 18 comments
Labels

Comments

@earshinov
Copy link

Describe the bug

With an <ng-select [editableSearchTerm]="true"> bound to a model value via [(ngModel)] or [formControl], ng-select is not cleared when the model value is cleared (set to null) or changed.

This is an intentional duplicate of #1971, which has been closed as stale.

Reproducible example
https://stackblitz.com/edit/angular-ivy-qsdnki (also contains repro steps)

Expected behavior
See also the example linked above.

  1. formControl.setValue(null) should clear ngSelect.searchText and ng-select's visual representation
  2. modelValue = null should also clear ngSelect.searchText and ng-select's visual representation

Screenshots
A screenshot of the example page linked above:

image

Environment

  • Windows 10 (actually does not matter)
  • Microsoft Edge 108.0.1462.54 (actually does not matter)
  • ng-select 10.0.1 (latest)

Additional context
Related issues:

@Tomal991
Copy link

Anyone?? Is this bug/issue solvable??

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions 🎆

@github-actions github-actions bot added the stale label Feb 25, 2023
@earshinov
Copy link
Author

Bumping to remove the "stale" mark. The bug is still there.

@github-actions github-actions bot removed the stale label Feb 26, 2023
@mgohin
Copy link

mgohin commented Mar 23, 2023

Got the problem too, very very annoying :/

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions 🎆

@github-actions github-actions bot added the stale label May 23, 2023
@earshinov
Copy link
Author

Here is some activity: I believe the issue is still present

@github-actions github-actions bot removed the stale label May 24, 2023
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions 🎆

@github-actions github-actions bot added the stale label Jul 23, 2023
@earshinov
Copy link
Author

I don't think this issue was fixed.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions 🎆

@github-actions github-actions bot added the stale label Sep 23, 2023
@earshinov
Copy link
Author

Still not fixed

@github-actions github-actions bot removed the stale label Sep 24, 2023
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions 🎆

@github-actions github-actions bot added the stale label Nov 23, 2023
@earshinov
Copy link
Author

☝️

@github-actions github-actions bot removed the stale label Nov 24, 2023
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions 🎆

@github-actions github-actions bot added the stale label Jan 23, 2024
@earshinov
Copy link
Author

☝️

@github-actions github-actions bot removed the stale label Jan 24, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions 🎆

@github-actions github-actions bot added the stale label Mar 24, 2024
@earshinov
Copy link
Author

Bumping once again

@github-actions github-actions bot removed the stale label Mar 25, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions 🎆

@github-actions github-actions bot added the stale label May 24, 2024
@earshinov
Copy link
Author

☝️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants