Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Management #664

Open
dliebner opened this issue Mar 29, 2023 · 0 comments
Open

Memory Management #664

dliebner opened this issue Mar 29, 2023 · 0 comments
Labels

Comments

@dliebner
Copy link

dliebner commented Mar 29, 2023

Hello,

Thanks for this lovely library.

My question - if I'm using the vanilla JS lib with a purely attribute-style implementation, do I need to worry about references / memory? Will the library automatically handle memory stuff when a simplebar-enabled element is removed from the DOM?

Context - I'm using this with reactive web components (Lit). Here's an example:

renderThing() {
	return html`<div data-simplebar data-simplebar-auto-hide="${MobileMode.active ? 'true' : 'false'}">
		...
	</div>`;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant