Topic: MDBBtn onClick doesn't work

zkrapavickas free asked 4 years ago


*Expected behavior*Handle button click event.

*Actual behavior*Button click event doesn't work.

Resources (screenshots, code snippets etc.) { alert("ssss") }}>Tooltip on top Tooltip on top


zkrapavickas free commented 4 years ago

:( attempt to add code snippet failing

        <div style={{ display: "flex" }}>
            <MDBTooltip placement="top">
                        <MDBBtn onClick={() => { alert("ssss") }}>Tooltip on top</MDBBtn>
                <div>Tooltip on top</div>
            </MDBTooltip>
        </div>

zkrapavickas free answered 4 years ago


Yep, this works with v.4.18.1. Thanks guys, case closed.


Aliaksandr Andrasiuk staff answered 4 years ago


Hi,

This problem is already fixed in our v.4.18.1 release.

You can update your mdbreact version and try to run this code again.

Best regards.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.18.0
  • Device: PC
  • Browser: Google Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags