mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
Merge pull request #801 from logto-io/charles-log-2406-resolve-code-editor-js-warning
fix(console): resolve js warning reported in code editor component
This commit is contained in:
commit
f76457c286
1 changed files with 2 additions and 3 deletions
|
@ -29,10 +29,9 @@ const CodeEditor = ({ language, isReadonly = false, value = '', onChange }: Prop
|
||||||
data-gramm="false"
|
data-gramm="false"
|
||||||
readOnly={isReadonly}
|
readOnly={isReadonly}
|
||||||
spellCheck="false"
|
spellCheck="false"
|
||||||
|
value={value}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
>
|
/>
|
||||||
{value}
|
|
||||||
</textarea>
|
|
||||||
<SyntaxHighlighter
|
<SyntaxHighlighter
|
||||||
customStyle={{
|
customStyle={{
|
||||||
background: 'transparent',
|
background: 'transparent',
|
||||||
|
|
Loading…
Reference in a new issue