Topic: How to use onbeforeunload in MDBSideNavLink

rashesh patel free asked 1 year ago


Hi,

How to use 'onbeforeunload'

or

window.addEventListener("beforeunload", function(event) { event.returnValue = "Write something clever here.."; });

in MDBSideNavLink ??

Because by using same when I change url manually than it work properly but when using MDBSideNavLink its not working...


Wojciech Staniszewski staff commented 1 year ago

Could You share some more code, please?



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: MDB4 4.21.0
  • Device: Laptop
  • Browser: chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No