Skip to content

Commit 83de4d7

Browse files
committed
fix(playground): set autorun on clear
1 parent 89244ab commit 83de4d7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

components/play-controller/element.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export class MDNPlayController extends LitElement {
102102
}
103103

104104
clear() {
105+
this.runOnChange = true;
105106
this.initialCode = undefined;
106107
this.srcPrefix = "";
107108
this.reset();

components/playground/element.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export class MDNPlayground extends L10nMixin(LitElement) {
8080
controller
8181
) {
8282
controller.clear();
83+
this._autoRun = true;
8384
this._storeSession();
8485
this.requestUpdate();
8586
const urlWithoutSearch = new URL(location.href);

0 commit comments

Comments
 (0)