Simplebar: Destroy/umount

Created on 22 Dec 2016  路  1Comment  路  Source: Grsmto/simplebar

Hi

How can I destroy or unmount SimpleBar??

Most helpful comment

Hey,
If you're using V2, it should unmount automatically when the element is removed from the DOM.
If you want to unmount for any other reason, you can call the unMount function.
It will not revert the element to his original DOM structure still. If you want to do that you will have to do it manually (maybe by cloning the element in JS before SimpleBar is applied...).

>All comments

Hey,
If you're using V2, it should unmount automatically when the element is removed from the DOM.
If you want to unmount for any other reason, you can call the unMount function.
It will not revert the element to his original DOM structure still. If you want to do that you will have to do it manually (maybe by cloning the element in JS before SimpleBar is applied...).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

idiotWu picture idiotWu  路  3Comments

ghost picture ghost  路  4Comments

EmilMoe picture EmilMoe  路  4Comments

adsim picture adsim  路  5Comments

FuturFuturFutur picture FuturFuturFutur  路  4Comments