MDBButton do not get custom classes


Topic: MDBButton do not get custom classes

omnia asked 8 months ago

Since the last version (that you released this morning) I cannot put any custom classes in the MDBBtn compoment

IE:

MDBBtn size="lg" onClick={this.onClick} color="white" className="btn btn-primary ml-3 setting-btn-side-bar">

setting-btn-side-bar is ignored during compilation and this is never happend before.

Looking in the pro-repo on git seem that you override the className property in Button$1 and there you forgot to append the original className string.

I bypass this problem putting ad ID and using it to write my custom css, but I think that is still a bug.


Piotr Glejzer staff answered 8 months ago

Hello,

Yes, it's a bug. I already fixed this.. We forgot to implement prop 'className' into a button that's why it's not working. If you are using our package from gitlab you can see it at the Button component in the pro folder. This fix will be released in the next release or you can fix this for your own.. Sorry about that.

Best regards, Piotr


Stefischer pro commented 8 months ago

Is there an ETA on when the update will be released?


Piotr Glejzer staff commented 8 months ago

In the next monday (23th of December).


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: React
  • MDB Version: 4.23.1
  • Device: pc
  • Browser: chrome
  • OS: win10
  • Provided sample code: No
  • Provided link: No
Tags
bug