Skip to content

Commit

Permalink
Merge pull request #81 from sikepuri-algorithm/fix-onChange-in-Intera…
Browse files Browse the repository at this point in the history
…ctiveCodeEditor

fix onChange in InteractiveCodeEditor
  • Loading branch information
chvmvd authored Nov 28, 2022
2 parents 5f3e08d + 717d1a4 commit 9f33a62
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function InteractiveCodeEditor({
defaultLanguage="html"
defaultValue={defaultHTML}
onChange={(value) => {
setCode(value);
setHTML(value);
}}
/>
</TabItem>
Expand All @@ -78,7 +78,7 @@ export default function InteractiveCodeEditor({
defaultLanguage="css"
defaultValue={defaultCSS}
onChange={(value) => {
setCode(value);
setCSS(value);
}}
/>
</TabItem>
Expand All @@ -88,7 +88,7 @@ export default function InteractiveCodeEditor({
defaultLanguage="javascript"
defaultValue={defaultJavaScript}
onChange={(value) => {
setCode(value);
setJS(value);
}}
/>
</TabItem>
Expand Down

0 comments on commit 9f33a62

Please sign in to comment.