n1crack / vuefinder

Empower your Vue.js applications with this versatile and customizable file manager component, simplifying file organization and navigation.
https://vuefinder.ozdemir.be
MIT License
259 stars 75 forks source link

Error removeListener with v-show #73

Closed Lucas-Justine closed 2 months ago

Lucas-Justine commented 3 months ago

An error is generated when the component is no longer displayed with a v-if, for example.

image

I think it's because the ref="root " no longer exists in the unmounted function in useHotkeyActions.js composable.

ximepa commented 3 months ago

same issue

ximepa commented 3 months ago

An error is generated when the component is no longer displayed with a v-if, for example.

image

I think it's because the ref="root " no longer exists in the unmounted function in useHotkeyActions.js composable.

do you have a solution?

Lucas-Justine commented 3 months ago

An error is generated when the component is no longer displayed with a v-if, for example. image I think it's because the ref="root " no longer exists in the unmounted function in useHotkeyActions.js composable.

do you have a solution?

I modified the code but only temporarily so as not to get any errors. I've added a question mark for each line with an error. I haven't had time to look into a real solution to the problem

ximepa commented 2 months ago

An error is generated when the component is no longer displayed with a v-if, for example.

image

I think it's because the ref="root " no longer exists in the unmounted function in useHotkeyActions.js composable.

understood

mshoaibdev commented 2 months ago

same error. Is there any way for a solution?

n1crack commented 2 months ago

Fixed https://github.com/n1crack/vuefinder/commit/65d695d5868416843cd611dcad78855c1451fc5c