File tree 2 files changed +4
-2
lines changed
examples/react/shadow-dom/src
packages/query-devtools/src
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const DogList = () => {
27
27
return (
28
28
< div >
29
29
{ dogs . map ( ( dog ) => (
30
- < div > { dog } </ div >
30
+ < div key = { dog } > { dog } </ div >
31
31
) ) }
32
32
</ div >
33
33
)
Original file line number Diff line number Diff line change @@ -182,7 +182,9 @@ const PiPProvider = (props: PiPProviderProps) => {
182
182
183
183
// It is important to copy all parent window styles. Otherwise, there would be no CSS available at all
184
184
// https://developer.chrome.com/docs/web-platform/document-picture-in-picture/#copy-style-sheets-to-the-picture-in-picture-window
185
- ; [ ...document . styleSheets ] . forEach ( ( styleSheet ) => {
185
+ ; [
186
+ ...( useQueryDevtoolsContext ( ) . shadowDOMTarget || document ) . styleSheets ,
187
+ ] . forEach ( ( styleSheet ) => {
186
188
try {
187
189
const cssRules = [ ...styleSheet . cssRules ]
188
190
. map ( ( rule ) => rule . cssText )
You can’t perform that action at this time.
0 commit comments