0
Fork 0
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:
Charles Zhao 2022-05-12 10:39:35 +08:00 committed by GitHub
commit f76457c286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',