Skip to content

Commit

Permalink
Make PanelGroup DOM selector more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Nov 13, 2023
1 parent 65a8e7a commit 585aa66
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export function getPanelGroupElement(id: string): HTMLDivElement | null {
const element = document.querySelector(`[data-panel-group-id="${id}"]`);
const element = document.querySelector(
`[data-panel-group][data-panel-group-id="${id}"]`
);
if (element) {
return element as HTMLDivElement;
}
Expand Down

0 comments on commit 585aa66

Please sign in to comment.