mirror of
https://github.com/owncast/owncast.git
synced 2025-11-03 04:27:18 +08:00
Fixed Slate error by providing initial value
This commit is contained in:
@ -144,7 +144,11 @@ export default function ChatTextField(props: Props) {
|
||||
|
||||
return (
|
||||
<div className={s.root}>
|
||||
<Slate editor={editor} value={[]} onChange={handleChange}>
|
||||
<Slate
|
||||
editor={editor}
|
||||
value={[{ type: 'paragraph', children: [{ text: '' }] }]}
|
||||
onChange={handleChange}
|
||||
>
|
||||
<Editable
|
||||
onKeyDown={onKeyDown}
|
||||
renderElement={p => <Element {...p} />}
|
||||
|
||||
Reference in New Issue
Block a user