Open nerbos opened 6 years ago
No wonder why my option with id = 0 is not showing up! This is a really big bug.
No wonder why my option with id = 0 is not showing up! This is a really big bug.
this.items = [{ id: "0", text: "Inactive" }, { id: "1", text: "Active" }];
like this, we can implement
Hi,
When you create a SelectItem with an id=0 the object will be created with the text as id, due to:
ng2-select/src/select/select-item.ts (line: 11)
I would suggest to change this code into something like this:
Best regards