mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
1 parent
89b294c60e
commit
f45a509c05
5 files changed
+8
-3
No files matched your search
@@ -16,6 +16,7 @@ export default function DataInputComponent(props) {
|
||||
className="scratchpad__data-input"
|
||||
style={{ overflowY: 'scroll' }}
|
||||
wrap="off"
|
||||
spellCheck="false"
|
||||
>
|
||||
{/* eslint-disable-next-line react/no-danger */}
|
||||
<pre dangerouslySetInnerHTML={{ __html: value }} contentEditable />
|
||||
@@ -24,6 +25,7 @@ export default function DataInputComponent(props) {
|
||||
<textarea
|
||||
className="scratchpad__data-input"
|
||||
wrap="off"
|
||||
spellCheck="false"
|
||||
value={value}
|
||||
onChange={(ev) => {
|
||||
ev.stopPropagation();
|
||||
|
||||
Reference in new issue
Block a user