question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clear selected items not working properly in latest version(1.0.1)

See original GitHub issue

Selection is not clearing on clear button click. Please find below code and link <ngx-select-dropdown tabindex="0" (change)="changeValue($event)" [multiple]="true" [(ngModel)]="multiSelect" [config]="config" [options]="options"></ngx-select-dropdown>

onClearClick() { this.multiSelect = []; this.options = [...this.options]; }

https://stackblitz.com/edit/angular-ptsyhe

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
bansalanjalicommented, Aug 30, 2019

Hey guys , I found solution for clear selected item. you just have to create a function and call on submit button. e.g, Html file: <ngx-select-dropdown class="form-control_Dropdown" placeholder="Select Category"(change)="selectionChanged($event)" [multiple]="true" [config]="configForMultidropdown" [(ngModel)]="mapCategoryForm.categories" [options]="categoryList"></ngx-select-dropdown>


Ts file: resetCategoryList() { this.mapCategoryForm.categories = []; // your ngModel list }

2reactions
kashifsohailcommented, May 4, 2019

Same Issue is here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

KB5017811—Manage Transport Layer Security (TLS) 1.0 ...
When you choose this option, the application reopens. Now, all the links that use TLS 1.0 and 1.1 work correctly. From then on,...
Read more >
Clear SingleChoice ListView selection - android
selected in one ListView I want to deselect the item in the other ListView. Both ListViews raise the following handler when an item...
Read more >
Items in explorer not changing color when selected in ...
This problem seems to be occurring only after starting the system from ... Select Windows Explorer from the list and click Restart in...
Read more >
Turbo release notes
Fixed an issue where the state and province selectors would not function on the ... not clearing properly when visiting a URL with...
Read more >
Tokyo Patch 1
The Tokyo Patch 1 release contains important problem fixes. ... instance App Shell Agent Workspace app version 1.0.1 to include Tokyo fixes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found