New data-mdb-*-init attribute - practical issue


Topic: New data-mdb-*-init attribute - practical issue

meesha81 pro premium priority asked 6 months ago

Hi, I am looking forward to why sidenav do not work properly. I would like to tell you one practical issue for some combination of developer tools.

If I use multiple lines for define button (other code is not important for this issue):

<button
                        class="navbar-toggler text-white" 
                        data-mdb-collapse-init 
                        type="button"
                        data-mdb-target="#sidebarMenu"
                        aria-controls="sidebarMenu"
                        aria-expanded="false"
                >

When template system Smarty do trimwhitespaces to remove white spaces, it will be:

It is because of data attribute without value. It will be merged to one data-mdb-collapse-inittype="button"

Solution: data-mdb-collapse-init=""

Or do not split button attributes to several lines. I am not sure what exactly works bad, but attribute without value can be problem. So just information for you.


Kamila Pieńkowska staff answered 6 months ago

We are dedicated to ensuring that our package functions well. Due to the diverse and often conflicting requirements of various tools, it is challenging to provide solutions compatible with every available tool. Consequently, it is the client's responsibility to ensure that their project works with the tools they choose to use.


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 7.3.0
  • Device: PC
  • Browser: Chrome
  • OS: Win11
  • Provided sample code: No
  • Provided link: No
Tags