Skip to content

Commit

Permalink
count CW for character limit
Browse files Browse the repository at this point in the history
  • Loading branch information
warriordog committed Oct 7, 2024
1 parent a90b4d4 commit eb5a2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkPostForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const submitText = computed((): string => {
});

const textLength = computed((): number => {
return (text.value + imeText.value).trim().length;
return (text.value + imeText.value).trim().length + (cw.value?.trim().length ?? 0);
});

const maxTextLength = computed((): number => {
Expand Down

0 comments on commit eb5a2b0

Please sign in to comment.