vuematerial / vue-material

Vue.js Framework - ready-to-use Vue components with Material Design, free forever.
https://www.creative-tim.com/vuematerial
MIT License
9.88k stars 1.16k forks source link

Allow false as a value for an MdOption #2183

Closed horyd closed 4 years ago

horyd commented 4 years ago

The docs for MdSelect (https://vuematerial.io/components/select/) state that MdOption value may be a boolean, and therefore may be false. However, when the value of false is passed in, and the option subsequently selected, there is no value rendered (just '').

This is because of this line, which isn't letting options with value as false be registered in the parent MdSelect.items map.

Small fix, but it now renders correctly.