ChatEditor: fix mobile input reset

This commit is contained in:
Liam Fitzgerald 2021-07-13 16:22:34 +10:00
parent 622e78a659
commit aecde2332f
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -232,6 +232,7 @@ const ChatEditor = React.forwardRef<CodeMirrorShim, ChatEditorProps>(({ inCodeMo
fontFamily={inCodeMode ? 'Source Code Pro' : 'Inter'} fontFamily={inCodeMode ? 'Source Code Pro' : 'Inter'}
fontSize={1} fontSize={1}
lineHeight="tall" lineHeight="tall"
value={message}
rows={1} rows={1}
style={{ width: '100%', background: 'transparent', color: 'currentColor' }} style={{ width: '100%', background: 'transparent', color: 'currentColor' }}
placeholder={inCodeMode ? 'Code...' : 'Message...'} placeholder={inCodeMode ? 'Code...' : 'Message...'}