You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Pressing the run button inside a canvas card will force the card to enter edit mode. You need to add event.stopPropagation() inside the run code and clear output buttons.
To Reproduce
Steps to reproduce the behavior:
Create a code snippet inside a canvas card.
Select the canvas card.
Press the run button.
The card enters edit mode.
Expected behavior
The card will run the code and also enter edit mode at the same time (should not enter edit mode).
privatecreateRunButton(){console.debug("Add run button");constbutton=document.createElement("button");button.classList.add(runButtonClass);button.setText(buttonText);button.addEventListener("click",(event)=>{event.stopPropagation();});returnbutton;}
The text was updated successfully, but these errors were encountered:
Describe the bug
Pressing the run button inside a canvas card will force the card to enter edit mode. You need to add
event.stopPropagation()
inside the run code and clear output buttons.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The card will run the code and also enter edit mode at the same time (should not enter edit mode).
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: