vue-konva icon indicating copy to clipboard operation
vue-konva copied to clipboard

Order element after build app is not working correctly.

Open ivanglpz opened this issue 1 year ago • 1 comments

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 2024-01-04 180055 Screenshot 2024-01-04 175249

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.

Screenshot 2024-01-04 175346

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",

ivanglpz avatar Jan 05 '24 00:01 ivanglpz

Please provide a very small demo or a repo.

lavrton avatar Jan 10 '24 18:01 lavrton

I solved it using the setZIndex

ivanglpz avatar Mar 30 '24 23:03 ivanglpz