BekeWeb premium asked 1 year ago


MDB5 1.0.0 (First Final) not the Beta 5 Version

I followed the instructions on the page https://mdbootstrap.com/docs/b5/angular/navigation/sidenav/#section-sidenav-slim with no adjustment to the TS file.

I just copied the code completely into my html file of the component and when clicking a link for example the Catergory 2 link 2 I get the following error:

TypeError: child.querySelector is not a function at mdb-angular-ui-kit-sidenav.js:923 at NodeList.forEach () at MdbSidenavItemComponent.setActiveElement (mdb-angular-ui-kit-sidenav.js:918) at SafeSubscriber.next (mdb-angular-ui-kit-sidenav.js:873) at SafeSubscriber._tryOrUnsub (Subscriber.js:183) at SafeSubscriber.next (Subscriber.js:122) at Subscriber._next (Subscriber.js:72) at Subscriber.next (Subscriber.js:49) at TakeUntilSubscriber._next (Subscriber.js:72) at TakeUntilSubscriber.next (Subscriber.js:49)

Can anyone possibly help me out with this?

Translated with www.DeepL.com/Translator (free version)


Arkadiusz Idzikowski staff commented 1 year ago

@BekeWeb We tried to reproduce that on our end but without success. Is this the only error message displayed in the console? Do you have MdbCollapseModule imported into your module file?


BekeWeb premium commented 1 year ago

It seems to be a problem wirh my angular project, in a new project it works fine.

The problem is solved and i'll look for the error in my project.


ASOKUMAR IT free commented 1 year ago

@Arkadiusz Idzikowski : In the documentation nowhere you mention about using MdbCollapseModule to make the menus collapsible.


Arkadiusz Idzikowski staff commented 1 year ago

@ASOKUMAR IT We made some changes in the sidenav module and it should automatically import the collapse module. Did you encounter any problems with the MdbCollapseModule when using sidenav?


p4k1tz free commented 1 year ago

I am also running into this issue with sidenav. When I click on any item in the sidenav it will throw the error and when clicking on it again the item does nothing. I am assuming that is thanks to the unsubscribe method in the module.

My question here is, is the MDB5 Angular implementation mature enough to actually use? I have been struggling with the sidenav for about a week now..


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue

  • User: Premium
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 1.0.0-beta5
  • Device: Mac
  • Browser: Chrome
  • OS: Big Sur
  • Provided sample code: No
  • Provided link: Yes