coreui/coreui-angular

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

viperage opened this issue · 3 comments

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

@viperage what's your version of:

  • angular (15/16) ?
  • @coreui/angular ?

@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.

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