kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'fix-1531' into 'main'
lexical: pass compose text from the reducer on mount Closes #1531 See merge request soapbox-pub/soapbox!2759environments/review-main-yi2y9f/deployments/4058
commit
e509a9b177
|
@ -100,7 +100,7 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
|
|||
const anyMedia = compose.media_attachments.size > 0;
|
||||
|
||||
const [composeFocused, setComposeFocused] = useState(false);
|
||||
const [text, setText] = useState('');
|
||||
const [text, setText] = useState(compose.text);
|
||||
|
||||
const firstRender = useRef(true);
|
||||
const formRef = useRef<HTMLDivElement>(null);
|
||||
|
|
Ładowanie…
Reference in New Issue