vue-konva
vue-konva copied to clipboard
Order element after build app is not working correctly.
Hello. Good afternoon. I m working with konva and vuejs. vite and i found a "bug" or "problem" after the build.
When i test the shapes for example: Rect, Circle and Group with combined with Arrow.
Screenshot 1 ---- DEVELOPMENT In mode development works fine. I add elements in order. Im not using zindex, i have a vue state and i add in order.
Screenshot 2 ---- PRODUCTION If I add the elements rect, circle and arrow in combination with group, the arrow goes to the bottom of the elements or backwards. I check if the problem was with the state. but in production it works correctly.
I don't know what configuration is neccesary for works fine :c
Package.json
"vue": "^3.2.45", "konva": "^9.3.0", "vue-konva": "^3.0.2",
Please provide a very small demo or a repo.
I solved it using the setZIndex