Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Is it possible to have multiple sidebars? #89

Closed
CatinhoCR opened this issue Jun 7, 2017 · 4 comments
Closed

Is it possible to have multiple sidebars? #89

CatinhoCR opened this issue Jun 7, 2017 · 4 comments
Labels

Comments

@CatinhoCR
Copy link

CatinhoCR commented Jun 7, 2017

Trying to have multiple sidebars within 1 page, could say a nested sidebar.

If I open each one of them everything works as expected, but when I close either one it also triggers the closing of the other sidebar. I changed the _opened variable name for one of them, and also the _toggleSidebar method name so it probably shouldn't be triggering for both of them.
Is there any way to overcome this?

The only workaround I've been able to come up with is by enabling the closeOnClickOutside to true on both of them, so it will close if clicked outside each one of them. But if I wanted to have this feature disabled then that's where the issue comes in.

@arkon
Copy link
Owner

arkon commented Jun 7, 2017

Could I see some of your code? It seems to work fine for me.

See below.

@arkon
Copy link
Owner

arkon commented Jun 7, 2017

Actually, I can reproduce this when I use the closeSidebar directive. Are you using that as well?

@arkon arkon added the bug label Jun 7, 2017
@arkon arkon self-assigned this Jun 7, 2017
@CatinhoCR
Copy link
Author

Hey there Arkon, thanks for the quick response.
Yes, I'm using the closeSidebar directive, you're right. That's when it triggers the close for both sidebars even if the variable and method names for each of those are different.

@arkon arkon removed their assignment Jun 7, 2017
@arkon
Copy link
Owner

arkon commented Jun 7, 2017

Fixed in v5.0.2.

@arkon arkon closed this as completed Jun 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants