diff --git a/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx b/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx index a17f52778..97e0c86b2 100644 --- a/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx +++ b/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx @@ -75,6 +75,7 @@ export const QueryCopilotPromptbar: React.FC = ({ const inputEdited = useRef(false); const itemRefs = useRef([]); const searchInputRef = useRef(null); + const copyQueryRef= useRef(null); const { openFeedbackModal, hideFeedbackModalForLikedQueries, @@ -132,6 +133,7 @@ export const QueryCopilotPromptbar: React.FC = ({ document.body.removeChild(queryElement); setshowCopyPopup(true); + copyQueryRef.current.focus(); setTimeout(() => { setshowCopyPopup(false); }, 6000); @@ -676,6 +678,7 @@ export const QueryCopilotPromptbar: React.FC = ({ )}