Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-655] chore: peek overview dropdowns keyboard navigation improvement (#3888)

Anmol Singh Bhatia66f2492e606c
diff --git a/web/components/issues/peek-overview/view.tsx b/web/components/issues/peek-overview/view.tsx
index aa7bd395fd..c3ac1495ae 100644
--- a/web/components/issues/peek-overview/view.tsx
+++ b/web/components/issues/peek-overview/view.tsx
@@ -58,7 +58,9 @@ export const IssueView: FC<IIssueView> = observer((props) => {
}
});
const handleKeyDown = () => {
- if (!isAnyModalOpen) {
+ const slashCommandDropdownElement = document.querySelector("#slash-command");
+ const dropdownElement = document.activeElement?.tagName === "INPUT";
+ if (!isAnyModalOpen && !slashCommandDropdownElement && !dropdownElement) {
removeRoutePeekId();
const issueElement = document.getElementById(`issue-${issueId}`);
if (issueElement) issueElement?.focus();