You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
Steps to reproduce the behavior (if example is not provided):
Go to linked stackblitz
Add any option from the multi-select
Click on the large yellow circle SVG
See error
Expected behavior
No error occurs.
Desktop (please complete the following information):
OS: Windows 10
Browser Chrome
Version 70.0.3538.77
Additional context
Issue is in handleMousedown method of ng-select.component.ts. It assume the target is HTMLElement which has a classList of string. When an SVGElement is clicked, it also has classList, but its an object that doesnt include 'includes' in its prototype.
The text was updated successfully, but these errors were encountered:
* remotes/main/master: (25 commits)
chore(release): 2.13.3
fix: keep selected items while bindValue is incorrect closesng-select#993
chore(release): 2.13.2
fix: appended dropdown position (ng-select#957)
chore(release): 2.13.1
fix: map selected items while source changed closesng-select#980, ng-select#977, ng-select#959
chore(release): 2.13.0
[fix] - $event.path does not work in Safari and Firefox. Replace with $event.composedPath(). (ng-select#968)
feat(templates): add searchTerm to header and footer (ng-select#961)
chore(release): 2.12.1
chore: include scss with package closesng-select#909
fix: use classList instead of className closesng-select#940
add aria-selected attribute on selected items (ng-select#936)
fix: handler mousedown for clear event when used animation library (ng-select#931)
chore(release): 2.12.0
feat(autofocus): focus if attribute is present (ng-select#924)
feat(isOpen): treat undefined value as default behaviour closesng-select#816
feat: allow to customise clear icon fixesng-select#835
chore(demo): fix virtual scroll example closesng-select#921
fix: keep items order while mapping selected options fixesng-select#907
...
NickMele
pushed a commit
to NickMele/ng-select
that referenced
this issue
Apr 12, 2019
Describe the bug
If an SVG is clicked on anywhere inside an ng-select option. The following error is observed.
ERROR
Error: target.className.includes is not a function
Reproducbile example
https://stackblitz.com/edit/ng-select-nk5spz
To Reproduce
Steps to reproduce the behavior (if example is not provided):
Expected behavior
No error occurs.
Desktop (please complete the following information):
Additional context
Issue is in handleMousedown method of ng-select.component.ts. It assume the target is HTMLElement which has a classList of string. When an SVGElement is clicked, it also has classList, but its an object that doesnt include 'includes' in its prototype.
The text was updated successfully, but these errors were encountered: