Promact/md2

Select component doesnt accept 0 and false values(ngModel) in md2-option

Closed this issue · 2 comments

option.value && this.equals(option.value, value));

Because of above line it is not selecting option whose value is 0 or false. We might need to update option.value && this.equals(option.value, value) to option.value != null && option.value != undefined && this.equals(option.value, value)

I can confirm that 0 doesn't work. This one gave me headaches as I've thought I was doing something wrong.

updated in latest version