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
ngModel value is set to empty array '[]' even when the mutliple flag is set to false.
I am trying to use this library for a very simple use case and i came across this issue. Below is something similar I am doing
ngModel value is set to empty array '[]' even when the mutliple flag is set to false.
I am trying to use this library for a very simple use case and i came across this issue. Below is something similar I am doing
<ngx-select-dropdown
[(ngModel)]="myModel"
[multiple]="false"
(change)="onChange($event)"
[options]="myOptions"
[config]="config">
with just above, I notice that myModel's default value is set to [] by the library. It is very unusual where the multiple selection is not required.
Expected result
Default value for the model where multiple is not defined should be set to undefined unless set otherwise.
value of myModel is undefined.
Actual result
value of myModel is []
The text was updated successfully, but these errors were encountered: