switch icon indicating copy to clipboard operation
switch copied to clipboard

wrong falseValue?

Open d21d3q opened this issue 6 years ago • 1 comments

Shouldn't falseValue hold false? https://github.com/vue-bulma/switch/blob/8559ab0e594539fbff5f277f743735a82fe6a989/src/Switch.vue#L30

d21d3q avatar Dec 19 '18 12:12 d21d3q

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
  }
  ...
}

bentappin avatar Jul 29 '19 08:07 bentappin