Topic: How to use onbeforeunload in MDBSideNavLink

rashesh patel free asked 2 years 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 2 years 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

  • ForumUser: 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