Topic: Issue with MDBBtn component
Peter Jang free asked 3 years ago
*Expected behavior*Button click should run the function passed through props. No issue occurs when MDBBtn component is replaced with a regular button component.
*Actual behavior*When clicking the button, screen goes blank and this error appears in console:
Uncaught Error: Unable to find node on an unmounted component. at findHostInstanceWithWarning (react-dom.development.js:24281) at Object.findDOMNode (react-dom.development.js:24804) at Waves.reppling (mdbreact.esm.js:820) at Waves.componentDidUpdate (mdbreact.esm.js:813) at commitLifeCycles (react-dom.development.js:20684) at commitLayoutEffects (react-dom.development.js:23426) at HTMLUnknownElement.callCallback (react-dom.development.js:3945) at Object.invokeGuardedCallbackDev (react-dom.development.js:3994) at invokeGuardedCallback (react-dom.development.js:4056) at commitRootImpl (react-dom.development.js:23151) at unstable_runWithPriority (scheduler.development.js:646) at runWithPriority$1 (react-dom.development.js:11276) at commitRoot (react-dom.development.js:22990) at performSyncWorkOnRoot (react-dom.development.js:22329) at react-dom.development.js:11327 at unstable_runWithPriority (scheduler.development.js:646) at runWithPriority$1 (react-dom.development.js:11276) at flushSyncCallbackQueueImpl (react-dom.development.js:11322) at flushSyncCallbackQueue (react-dom.development.js:11309) at discreteUpdates$1 (react-dom.development.js:22420) at discreteUpdates (react-dom.development.js:3756)
Resources (screenshots, code snippets etc.)
Problem is replicated anywhere a MDBBtn component is added and clicked on
Screenshot not able to be uploaded: getting an error saying incorrect file extension when file is jpeg.
Issue seems to be similar to this: https://mdbootstrap.com/support/react/error-with-buttons-react/ but no solution is provided on that page.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.11.1
- Device: PC
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: Yes
Piotr Glejzer staff commented 3 years ago
Hmm, we don't use finddomnode anymore. What verssion do you use?
Peter Jang free commented 3 years ago
This issue was on 4.11.1 but once I updated to a more current version, the problem was resolved.