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
Comments
Anyone?? Is this bug/issue solvable?? |
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 🎆 |
Bumping to remove the "stale" mark. The bug is still there. |
Got the problem too, very very annoying :/ |
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 🎆 |
Here is some activity: I believe the issue is still present |
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 🎆 |
I don't think this issue was fixed. |
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 🎆 |
Still not fixed |
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 🎆 |
☝️ |
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 🎆 |
☝️ |
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 🎆 |
Bumping once again |
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 🎆 |
☝️ |
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 tonull
) 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.
formControl.setValue(null)
should clearngSelect.searchText
and ng-select's visual representationmodelValue = null
should also clearngSelect.searchText
and ng-select's visual representationScreenshots
A screenshot of the example page linked above:
Environment
Additional context
Related issues:
The text was updated successfully, but these errors were encountered: