Skip to content

Commit 2820c5c

Browse files
committed
reset custom HTML element after user left
1 parent 5d20301 commit 2820c5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/redux/reducers/slice/appStateSlice.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ const appStateSlice = createSlice({
780780
const components = [rootComponent];
781781

782782
const stylesheet = '';
783+
const resetHTMLTypes = HTMLTypes;
783784

784785
return {
785786
...state,
@@ -789,7 +790,8 @@ const appStateSlice = createSlice({
789790
nextComponentId,
790791
components,
791792
canvasFocus,
792-
stylesheet
793+
stylesheet,
794+
HTMLTypes: resetHTMLTypes
793795
};
794796
},
795797
updateProjectName: (state, action) => {

0 commit comments

Comments
 (0)