Topic: navbar collapse by default !

Kaherdino priority asked 3 years ago


I'm using mdboostrap with : "mdb-react-ui-kit": "git+https://oauth2:MYSCECRET@git.mdbootstrap.com/mdb/react/mdb5/prd/mdb5-react-ui-kit-pro-essential",

Expected behavior My navbar's buttons aren’t supposed to be collasped on desktop : OK : https://snipboard.io/vsGDVe.jpg

Generated Code :

Actual behavior My navbar’s button are collapsed ! Error : https://snipboard.io/nVq6IL.jpg Then the code add a collapsing tag :

Here is my complete nav code : setShowBasic(!showBasic)} >

      <MDBCollapse navbar show={showBasic}>
        <MDBNavbarNav className="me-auto mb-2 mb-lg-0">
          <MDBBtn className="mx-1" color="secondary">
            Commencer à lire
          </MDBBtn>
            ...

It was working fine but when I make a new npm install of my projects, it didn’t work anymor


Kaherdino priority commented 3 years ago

I've reproduce the problem here : https://mdb5-next.vercel.app/

Please, answer me, we are waiting for deployment on that...


Kaherdino priority commented 3 years ago

I force to use 2.0.0 version and it works. Nice test !!!


Krzysztof Wilk staff commented 3 years ago

Hi!

Could you share a code with your problem? It'll be very helpful to diagnose the problem :)

Keep coding!


Kaherdino priority commented 3 years ago

https://github.com/Kaherdin/mdb5-next

But as I said, it's the 2.1.0 version of MDB-pro that break everything...You didn't do test before making a new released ? And where are the patch notes ?

The problem is here :

app/src/free/core/components/Collapse/Collapse.tsx https://git.mdbootstrap.com/mdb/react/mdb5/prd/mdb5-react-ui-kit-pro-essential/-/commit/c348ac06e0519f0bb34fa112d288818cfdb794cb#d142bc29a4dffb9a0e491422c39dcddb42ca35f4


Krzysztof Wilk staff answered 2 years ago


Hi!

Thanks for reporting that and sorry about this bug. A changelog for the MDB5 React package you can find here: https://mdbootstrap.com/docs/b5/react/getting-started/changelog/. There was a bug with animations of the MDBCollapse, that's why we edited this code. And of course, we are testing it, but sometimes it is hard to predict behaviors such as that one with the number of components we have. The fix should appear in about 1-1,5 weeks.

Keep coding!



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

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 1.4.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes