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 6cc63dc commit deff9aeCopy full SHA for deff9ae
1 file changed
packages/devtools/src/components/source-inspector.tsx
@@ -71,11 +71,13 @@ export const SourceInspector = () => {
71
})
72
73
74
- createEventListener(document, 'click', (e: Event) => {
+ createEventListener(document, 'click', (e) => {
75
if (!highlightState.element) return
76
77
+ window.getSelection()?.removeAllRanges()
78
e.preventDefault()
79
e.stopPropagation()
80
+
81
fetch(
82
`${location.origin}/__tsd/open-source?source=${encodeURIComponent(
83
highlightState.dataSource,
0 commit comments