Skip to content
Source
Sign inSign up
TanStack/query

After closed devtools, padding of parent element remains #4467

Send to my agent
Closedminami-minami(GitHub profile, opens in a new tab) opened this issue 3 comments

Describe the bug

The padding of the parent element is reset with inline style when devtools is opened. The inline style remains after closed devtools, so original padding specified with non-inline style of parent element is not applied.

image

Your minimal, reproducible example

https://codesandbox.io/s/async-sky-5ibueo?file=/index.html

Steps to reproduce

  1. Open devtools.
  2. Close devtools.

Expected behavior

No padding remains for resetting and the original padding is applied.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

All

react-query version

4.14.5

TypeScript version

No response

Additional context

No response

  1. Let me handle it if it should be fixed.

  2. I think it's weird that we influence the styles of the parent at all. Not sure why this is needed, but I think it got introduced with

    So I'm gonna tag @salamaashoush as well.

    Let me handle it if it should be fixed.

    if you want to tackle it, please go ahead. Thank you 🙏

  3. TkDodo added labelsbug

  4. TkDodo added labelspackage: react-query-devtools

  5. TkDodo closed this

Sign in to join this conversation.