Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit cfdce87

Browse files
committed
move id
1 parent 5ec6a99 commit cfdce87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/javascripts/discourse/components/ai-bot-sidebar-new-conversation.gjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { service } from "@ember/service";
44
import DButton from "discourse/components/d-button";
55
import { AI_CONVERSATIONS_PANEL } from "../services/ai-conversations-sidebar-manager";
66

7+
const TEXTAREA_ID = "ai-bot-conversations-input";
8+
79
export default class AiBotSidebarNewConversation extends Component {
810
@service appEvents;
911
@service router;
@@ -15,7 +17,7 @@ export default class AiBotSidebarNewConversation extends Component {
1517

1618
@action
1719
focusTextarea() {
18-
document.getElementById("ai-bot-conversations-input")?.focus();
20+
document.getElementById(TEXTAREA_ID)?.focus();
1921
}
2022

2123
@action

0 commit comments

Comments
 (0)