Title: Link prevent default
Last modified: May 27, 2026

---

# Link prevent default

 *  [emrl](https://wordpress.org/support/users/emrl/)
 * (@emrl)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/link-prevent-default/)
 * If you add a link to open the modal, if you set the link to an empty hash like`#`,
   the page scrolls to the top when the modal opens. I think that `event.preventDefault()`
   should be used on any selector that opens the modal.
 * Also noticed that the demo site is down ([https://light-modal-block.cloudcatch.io/](https://light-modal-block.cloudcatch.io/)).
   Is this plugin still in active development?

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flink-prevent-default%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/light-modal-block/assets/icon.svg?rev=3399001)
 * [Light Modal Block](https://wordpress.org/plugins/light-modal-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/light-modal-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/light-modal-block/)
 * [Active Topics](https://wordpress.org/support/plugin/light-modal-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/light-modal-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/light-modal-block/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [emrl](https://wordpress.org/support/users/emrl/)
 * Last activity: [1 week, 4 days ago](https://wordpress.org/support/topic/link-prevent-default/)
 * Status: not resolved