question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Page refresh preventing after click on import

See original GitHub issue

Version: 0.15.9

Are you able to reproduce the bug from the demo? Yes

What is the expected behavior? Don’t refresh the page after clicking on import buttion

Describe the bug detailed I have included this component(grapesjs) in b-form. In which we have an import option right so I have clicked on that button it will refresh the entire page with adding of URL query params like following

<b-form> <grapesjs></grapesjs> </b-form>

URL query params: http://localhost:8080/`**?text-align=left&text-decoration=none&font-style=normal&border-collapse=separate**`#/examples/form

What is the current behavior? It refreshing the entire page after clicking on the import button

Describe the bug detailed

Refreshing entire page when I am clicking on the import button

Are you able to attach screenshots, screencasts, or a live demo?

Yes https://drive.google.com/file/d/1FsRxtize5UL1XLic_7F6S3CO91_ctauh/view

Could u please help anyone how to do resolve this

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dharmatvcommented, Nov 9, 2020

Thanks @artf I got solution, please check following solution if anyone need Sol:

md.getModel().on("change:open", function () {
          // Your logic
      });
0reactions
ahmedbakri2020commented, Sep 21, 2022

@dharmatv its work , thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent page refresh on button click in React Native ...
How to prevent page refresh on button click in React Native function · 1. You can use the useMemo hook to memoize the...
Read more >
Avoid button click event on page refresh - CodeProject
Check page load event if there ia any call to that button click event. Or try follow to automatic refresh your Page. Use...
Read more >
Automatic page refresh in Power BI Desktop - Microsoft Learn
To use automatic page refresh in Power BI Desktop, select the report page for which you want to enable automatic page refresh.
Read more >
How to Save State to LocalStorage & Persist on Refresh with ...
You can even select your stored value in the Local Storage panel, hit the Delete key, and refresh the page (or just clear...
Read more >
Prevent page refresh on form submit in React.js | bobbyhadz
Use the preventDefault() method on the event object to prevent a page refresh on form submit in React, e.g. event.preventDefault() . The preventDefault...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found