vue-drag-resize
vue-drag-resize copied to clipboard
Invalid prop: custom validator check failed for prop "h"
What this means? I can not resolved this error message:
vue.runtime.esm.js?2b0e:619 [Vue warn]: Invalid prop: custom validator check failed for prop "h".
found in
---> <VueDragResize> at src/components/vue-drag-resize.vue
@mirkofisic The height of your vue-drag-resize component must be set. You should bind a number prop "h".
I have the following code boundingBoxCoordinates: { x: 0, y: 0, height: 0, width: 0 }
< VueDragResize > :isActive="true" :w="boundingBoxCoordinates.width" :h="boundingBoxCoordinates.height" :x="boundingBoxCoordinates.x" :y="boundingBoxCoordinates.y" :preventActiveBehavior="true" v-on:resizing="resize" v-on:dragging="resize" :minw="5" :minh="5"> </ VueDragResize >
Invalid prop: custom validator check failed for prop "h".
What can i do here to remove the error here?
I added the prop 'preventActiveBehavior' to resolve this problem
because you use String instead of Number