coreui / coreui-angular

CoreUI Components Library for Angular https://coreui.io/angular/docs/
https://coreui.io/angular/
MIT License
248 stars 146 forks source link

SidebarModule: Clicking on backdrop does not close sidebar on mobile view #182

Closed viperage closed 1 year ago

viperage commented 1 year ago

When importing SidebarModule into a standalone component, when clicking the backdrop on mobile view, it does not close the sidebar. It seemIt seems to be triggering its own sidebar service. Which has no observers. image

xidedix commented 1 year ago

@viperage what's your version of:

viperage commented 1 year ago

@xidedix I am currently using Angular 16. coreui/angular: 4.5

I managed to work around it by having importProviderFrom(SidebarModule) in the app.config.ts. And for my standalone component I import the individual components and service.

Pardon me if I'm wrong but I suspect that when I import the SidebarModule into my standalone component it created its own SidebarService instead of using the service created at root thus having the issue where the state are not triggered.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions