Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: moadal toggle error

Manamapps free asked 5 years ago


Expected behavior close nodal when clicking out side; i use a redux function to control closing the modal. how can i uplly that function to clicking outside the modal?

Actual behavior getting error from mdbreact. Resources (screenshots, code snippets etc.) mdbreact.js?ae9f:6802 Uncaught TypeError: _this.props.toggle is not a function at eval (mdbreact.js?ae9f:6802) at HTMLUnknownElement.callCallback (react-dom.development.js?7f13:337) at Object.invokeGuardedCallbackDev (react-dom.development.js?7f13:386) at invokeGuardedCallback (react-dom.development.js?7f13:441) at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js?7f13:455) at executeDispatch (react-dom.development.js?7f13:585) at executeDispatchesInOrder (react-dom.development.js?7f13:610) at executeDispatchesAndRelease (react-dom.development.js?7f13:714) at executeDispatchesAndReleaseTopLevel (react-dom.development.js?7f13:723) at forEachAccumulated (react-dom.development.js?7f13:695)


Jakub Chmura staff answered 5 years ago


Hi @Manamapps,

Please give me more details. Paste here your code with modals and show me how you control the closing and opening the modal. Then I'll be able to help you. For now, I can't figure out what is wrong.

Best, Kuba



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: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.24.0
  • Device: desktop
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No