Topic: How to use onbeforeunload in MDBSideNavLink
rashesh patel free asked 3 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...
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
Wojciech Staniszewski staff commented 3 years ago
Could You share some more code, please?