Topic: Tabs --- Uncaught TypeError: can't access property "split" of null

ktakiya priority asked 2 years ago


Expected behavior

I wanted to default on the first tab.

Actual behavior Uncaught TypeError: can't access property "split" of null

Resources (screenshots, code snippets etc.)

var tabTriggerEl = document.querySelector('#menu-tabs'); var instance = mdb.Tab.getInstance(document.querySelector('#menu-tabs')); if (!instance) { instance = new mdb.Tab(tabTriggerEl); } instance.show()


ktakiya priority answered 2 years ago



it has been resolved... closed


ktakiya priority answered 2 years ago


the HTML is after ajax response data, so it will append to the HTML node and render it.


FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.11.0
  • Device: Mac
  • Browser: FF
  • OS: MacOS
  • Provided sample code: No
  • Provided link: No
Tags