Skip to content

Commit 544d7af

Browse files
chore: fix issues with react-router (#75)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 87928d0 commit 544d7af

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.changeset/cruel-beds-look.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/devtools': patch
3+
---
4+
5+
fix issue with react-router and delegated events

packages/devtools/src/context/pip-context.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
onCleanup,
77
useContext,
88
} from 'solid-js'
9-
import { clearDelegatedEvents, delegateEvents } from 'solid-js/web'
9+
import { delegateEvents } from 'solid-js/web'
1010
import type { Accessor, JSX } from 'solid-js'
1111

1212
interface PiPProviderProps {
@@ -69,8 +69,6 @@ export const PiPProvider = (props: PiPProviderProps) => {
6969
pip.document.head.innerHTML = ''
7070
// Remove existing body
7171
pip.document.body.innerHTML = ''
72-
// Clear Delegated Events
73-
clearDelegatedEvents(pip.document)
7472

7573
pip.document.title = 'TanStack Devtools'
7674
pip.document.body.style.margin = '0'

0 commit comments

Comments
 (0)