Skip to content

Commit b677315

Browse files
committed
Ensure Internal State Resets on Clear Button Clickg
1 parent 9d84ccd commit b677315

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

view/frontend/templates/canvas.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ $canvasBlockName = $canvasViewModel->getCanvasBlockName($block);
204204
resetCanvas()
205205
{
206206
this.canvas.width = this.canvas.width;
207+
this.canvasImage = this.canvasImageDefault;
207208
},
208209

209210
setCanvasWidth()

0 commit comments

Comments
 (0)