We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f1d1b commit 2902e30Copy full SHA for 2902e30
packages/dashboard/src/lib/hooks/use-floating-bulk-actions.ts
@@ -32,7 +32,9 @@ export function useFloatingBulkActions({
32
}
33
34
const updatePosition = () => {
35
- const container = document.querySelector(containerSelector)?.closest('div') as HTMLElement;
+ // Find the container by searching upwards from the current component
36
+ const currentElement = document.activeElement || document.body;
37
+ const container = currentElement.closest(containerSelector) as HTMLElement;
38
if (!container) return;
39
40
const containerRect = container.getBoundingClientRect();
0 commit comments