diff --git a/src/showplanner/index.tsx b/src/showplanner/index.tsx index c15522e..b52627f 100644 --- a/src/showplanner/index.tsx +++ b/src/showplanner/index.tsx @@ -170,10 +170,15 @@ const Showplanner: React.FC<{ timeslotId: number }> = function({ timeslotId }) { ]) ); } - // If we're dragging from a pseudo-column, and a search field is focused, defocus it. + // If we're dragging from a pseudo-column, + // and a search field or library dropdown is focused, defocus it. if (result.source.droppableId[0] === "$") { const focus = document.activeElement; - if (focus && focus instanceof HTMLInputElement && focus.type === "text") { + if ( + (focus && focus instanceof HTMLInputElement && focus.type === "text") || + (focus instanceof HTMLSelectElement && + focus.id === "sidebarLibrarySelect") + ) { focus.blur(); } } diff --git a/src/showplanner/libraries.tsx b/src/showplanner/libraries.tsx index 82938db..da23c0c 100644 --- a/src/showplanner/libraries.tsx +++ b/src/showplanner/libraries.tsx @@ -115,6 +115,7 @@ export function LibraryColumn() {