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.

Clearing values is not working for single selection mode.

See original GitHub issue

On click of ‘X’ mark , the items is not getting removed for [multiple]=“false” , But for [multiple]=“true” it is. Version : 1.4.4 This is my below code :

<div class="row">
  <div class="col-sm-12">
    <ngx-select-dropdown #auto
    (change)="selectEvent($event)" 
    [multiple]="false" 
    [config]="dropdownSettings"
    [options]="dropdownList"
    [(ngModel)]="selectedOptions"
    >
    </ngx-select-dropdown>
  </div>
  <span   class="invalid-autocomplete col-sm-12">
    <span *ngIf="!isValid"  class="">{{ errorMsg }}</span>
  </span>
</div>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
TalibCodecommented, Apr 5, 2021

Facing the same issue, is it fixed or not?

1reaction
adisco4420commented, Sep 29, 2020

am also having this issue does anyone have a solution to this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug in SelectionModel single selection mode #10051 - GitHub
This model doesn't handle the scenario where there's no selection at initialization (e.g. empty table) when it's single selection mode.
Read more >
How to programmatically clear/reset React-Select?
I came across this problem myself and managed to fix it by passing a key to the React-Select component, with the selected value...
Read more >
SelectionModel (JavaFX 8) - Oracle Help Center
A method that clears any selection prior to setting the selection to the given index. The purpose of this method is to avoid...
Read more >
Table control: Line selection single issue - SAP Community
1. Write a module in the PAI of screen(inside loop-endloop). There you write code to deselect all the rows(i.e. clear the "column selection" ......
Read more >
Deselect a selection - Microsoft Support
Deselect selected cells with Ctrl+Left-Click. If you've already selected a cell, clicking on it again will deselect it.
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