Issue #2114Opened July 3, 2019by sharma-mohit-eca0 reactions

Disable event.preventDefeault() for anchor onClick event

Question

I want to open a modal on clicking to anchor in the provided html in grapesjs Editor. I have bind onClick event on anchor but on clicking to that anchor takes to prevDef method of grapesjs which triggers 'event.preventDefault()'. So is there a way to disable it or a way to open a modal on clicking to that modal?

Answers (2)

artfJuly 12, 20190 reactions

Can you show use a live demo of your example?

I want to open a modal

The modal from the template or the one from GrapesJS?

no-response[bot]July 22, 20190 reactions

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.