vue-drag-resize icon indicating copy to clipboard operation
vue-drag-resize copied to clipboard

Invalid prop: custom validator check failed for prop "h"

Open mirkofisic opened this issue 5 years ago • 4 comments

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 avatar Apr 12 '19 15:04 mirkofisic

@mirkofisic The height of your vue-drag-resize component must be set. You should bind a number prop "h".

Ansel avatar Apr 16 '19 03:04 Ansel

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?

kattianirudh97 avatar Jan 28 '20 07:01 kattianirudh97

I added the prop 'preventActiveBehavior' to resolve this problem

wwwvvvv avatar Apr 21 '21 00:04 wwwvvvv

because you use String instead of Number

evancohe avatar Jul 30 '21 01:07 evancohe