switch
switch copied to clipboard
wrong falseValue?
Shouldn't falseValue
hold false
?
https://github.com/vue-bulma/switch/blob/8559ab0e594539fbff5f277f743735a82fe6a989/src/Switch.vue#L30
This is confusing me too.
Shouldn't they both actually be Boolean
rather than true
/false
? If a default required it should be done like this:
props: {
...
trueValue:
type: Boolean,
default: true
}
...
}