[Vuejs]-Boostrap vue – Invalid prop: type check failed for prop "state". Expected Boolean

0👍

validation is a function, while boolean value is expected. In this case the correct way to use it is :state="validation()"

Since validation method accepts no arguments and there are no reasons for it to be called on each render, it should be a computed instead:

  computed: {
    validation() { ...

Leave a comment