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

Button clear not work. #928

Closed
javico2609 opened this issue Nov 7, 2018 · 0 comments
Closed

Button clear not work. #928

javico2609 opened this issue Nov 7, 2018 · 0 comments

Comments

@javico2609
Copy link
Contributor

javico2609 commented Nov 7, 2018

Describe the bug
When i click in clear btn nothing happening.

  • not set the from value
  • not dispatch clear Ouput

Reproducbile example

 <ng-select
     [items]="langs"
     formControlName="language"
     bindLabel="title"
     bindValue="key"
     (clear)="onClearLang()">
 </ng-select>

onClearLang(): void {
  console.log('clear event')
}

To Reproduce
1 - click in clear btn and not clean the value

Expected behavior

clear the value.

Screenshots

image

Problem Detected

ng-select.component.ts, line 276 handleMousedown($event: MouseEvent)
if (target.className === 'ng-clear-wrapper') {
    this.handleClearClick();
    return;
}

target.className = "ng-clear-wrapper ng-star-inserted"
NickMele pushed a commit to NickMele/ng-select that referenced this issue Apr 12, 2019
…g-select#931)

* fix: handler mousedown for clear event when used animation library
closes ng-select#928
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant