Skip to content

Commit

Permalink
Ensure Internal State Resets on Clear Button Clickg
Browse files Browse the repository at this point in the history
  • Loading branch information
pykettk committed Oct 31, 2022
1 parent 9d84ccd commit b677315
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions view/frontend/templates/canvas.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ $canvasBlockName = $canvasViewModel->getCanvasBlockName($block);
resetCanvas()
{
this.canvas.width = this.canvas.width;
this.canvasImage = this.canvasImageDefault;
},

setCanvasWidth()
Expand Down

0 comments on commit b677315

Please sign in to comment.