fix: Always display "Add comment" button when input has text (#1379)

Closes #1350
This commit is contained in:
keke
2025-10-15 00:45:41 +08:00
committed by GitHub
parent 1df346d590
commit e080d30b32

View File

@@ -173,7 +173,7 @@ const Add = React.memo(() => {
/>
</MentionsInput>
</div>
{isOpened && (
{(isOpened || data.text.length > 0) && (
<div className={styles.controls}>
<Button
{...clickAwayProps} // eslint-disable-line react/jsx-props-no-spreading