Skip to content

A platform for community discussion. Free, open, simple.

FIX: Check for textarea presence (#27457)

Jarek Radosz9f681ad65e58
diff --git a/plugins/chat/assets/javascripts/discourse/services/chat-channel-composer.js b/plugins/chat/assets/javascripts/discourse/services/chat-channel-composer.js
index 620f7cb4319..a7930ae7a87 100644
--- a/plugins/chat/assets/javascripts/discourse/services/chat-channel-composer.js
+++ b/plugins/chat/assets/javascripts/discourse/services/chat-channel-composer.js
@@ -41,7 +41,7 @@ export default class ChatChannelComposer extends Service {
@action
blur() {
- this.textarea.blur();
+ this.textarea?.blur();
}
@action