Fixes #22854: Set `USE_SHADOW_DOM=False` to fix GraphiQL queries w/debug enabled (#22855)

This commit is contained in:
Jeremy Stretch 2026-08-03 12:13:40 -04:00 committed by GitHub
parent 071c78d172
commit 6047ce1a37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -634,6 +634,10 @@ SERIALIZATION_MODULES = {
DEBUG_TOOLBAR_CONFIG = {
'SHOW_TOOLBAR_CALLBACK': 'utilities.debug.show_toolbar',
# The GraphiQL integration provided by strawberry-django locates the toolbar via
# document.getElementById('djDebug'), which fails when the toolbar is rendered inside a
# shadow root (the default as of django-debug-toolbar v7.0).
'USE_SHADOW_DOM': False,
}