聊天中,输入内容后,点击上方默认消息,会清空输入框修复
This commit is contained in:
parent
1ec1c1f12f
commit
4776b15026
|
|
@ -2163,7 +2163,6 @@ const Meeting: React.FC = () => {
|
|||
chatListIten: item,
|
||||
}
|
||||
})
|
||||
setTextMsg('');
|
||||
chatScrollBotton()
|
||||
} else {
|
||||
message.error('请输入内容!')
|
||||
|
|
@ -3162,7 +3161,10 @@ const Meeting: React.FC = () => {
|
|||
<Input.TextArea placeholder="请输入消息" value={textMsg} style={{ flexGrow: 1 }} onChange={(e) => {
|
||||
setTextMsg(e.target.value)
|
||||
}}></Input.TextArea>
|
||||
<Button type="primary" className='m-ant-btn' style={{ flexShrink: 0, marginTop: '4px' }} onClick={() => sendMsg()}>发送</Button>
|
||||
<Button type="primary" className='m-ant-btn' style={{ flexShrink: 0, marginTop: '4px' }} onClick={() => {
|
||||
sendMsg()
|
||||
setTextMsg('');
|
||||
}}>发送</Button>
|
||||
</div>
|
||||
</div>
|
||||
:
|
||||
|
|
|
|||
Loading…
Reference in New Issue