fix: disable publish when be bypassed by Ctrl + Enter (#3133)
This commit is contained in:
parent
2a85c9ebd4
commit
a7cd43fcd9
1 changed files with 3 additions and 0 deletions
|
@ -196,6 +196,9 @@ async function toggleSensitive() {
|
|||
}
|
||||
|
||||
async function publish() {
|
||||
if (isPublishDisabled.value || isExceedingCharacterLimit.value)
|
||||
return
|
||||
|
||||
const publishResult = await (threadIsActive.value ? publishThread() : publishDraft())
|
||||
if (publishResult) {
|
||||
if (Array.isArray(publishResult))
|
||||
|
|
Loading…
Add table
Reference in a new issue