formkit / drag-and-drop

Home Page:https://drag-and-drop.formkit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

z-index at elements after drag does not disappear, in vue

Jerd0 opened this issue · comments

z-index at elements after drag does not disappear, in vue

https://stackblitz.com/edit/vitejs-vite-xghckt?file=src%2FApp.vue

Screen.Recording.2024-03-18.at.14.30.53.mov

it seems to me that z-index should be removed automatically after the end of a drag event.

@Jerd0 Hey there! When you define handlEnd, you are actually overriding the core handleEnd event. The way to do this would be to import the original handleEnd and invoke it after: https://stackblitz.com/edit/vitejs-vite-t7bzxw?file=src%2Fcomponents%2Ftest.vue. We plan to implement some system of emitting events in the future, so you don't need to worry about overriding existing events. I'll close this for now but please let me know if you have any other questions.