Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Focus textearea after trying to send empty message.
Tim Abbott7972dde7af11
diff --git a/web/src/compose_validate.ts b/web/src/compose_validate.tsindex f223f77546b..937cd07b4ab 100644--- a/web/src/compose_validate.ts+++ b/web/src/compose_validate.ts@@ -860,6 +860,7 @@ export function validate(scheduling_message: boolean): boolean {const no_message_content = /^\s*$/.test(message_content);if (no_message_content) {$("textarea#compose-textarea").toggleClass("invalid", true);+ $("textarea#compose-textarea").trigger("focus");return false;}