ITADN

[graphiql-react] Prettify button missing red error class on invalid queries

#4160Openlesleydreyer 创建于 2026-01-30
buggraphiql
L
lesleydreyercommented
### Is there an existing issue for this? - [x] I have searched the existing issues ### Current Behavior The prettify button used to turn red if it failed to prettify, it doesn't seem to be doing that anymore ### Expected Behavior If you press the prettify button on an invalid query that cannot prettify, the button should turn red ### Steps To Reproduce In the swapi or netlify demos, type an incorrect query and press prettify <img width="60%" alt="Image" src="https://github.com/user-attachments/assets/e9c76975-ac65-4311-8d5e-ce9d0702aa66" /> ___ The button used to turn red like this but doesn't anymore <img width="147" height="57" alt="Image" src="https://github.com/user-attachments/assets/1bd85aea-6413-4779-8458-3472d8270d27" /> ### Environment * GraphiQL Version: * OS: * Browser: * Bundler: * `react` Version: * `graphql` Version: ### Anything else? _No response_
0 条评论