Spaces:
Running
Running
docs: document Gradio 6.12 tab-switching bug + workaround
Browse files- README: add Known Issues section describing the Dataframe component
crash that silently blocks tab navigation after Walk results load,
with workaround (refresh page before switching tabs)
- app.py: add tip note below Walk feature table pointing users to the
workaround
README.md
CHANGED
|
@@ -41,6 +41,26 @@ pip install -r demo/requirements.txt
|
|
| 41 |
python demo/app.py
|
| 42 |
```
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
## Credits
|
| 45 |
|
| 46 |
- **LARQL / LQL / vindex format:** Chris Hayuk ([@chrishayuk](https://github.com/chrishayuk))
|
|
|
|
| 41 |
python demo/app.py
|
| 42 |
```
|
| 43 |
|
| 44 |
+
## Known Issues
|
| 45 |
+
|
| 46 |
+
### Tab navigation stops working after running Walk Explorer
|
| 47 |
+
|
| 48 |
+
**What happens:** After running a query in the Walk Explorer tab and results appear
|
| 49 |
+
in the feature table, clicking other tabs (Knowledge Probe, LQL Console, etc.) may
|
| 50 |
+
silently fail — the tab appears not to switch.
|
| 51 |
+
|
| 52 |
+
**Root cause:** Gradio 6.12 bug. A `TypeError` in the internal Dataframe component
|
| 53 |
+
(`Index-BGETwOir.js: Cannot read properties of undefined (reading '0')`) fires during
|
| 54 |
+
the Svelte reactive re-render triggered by the tab switch. The error is swallowed
|
| 55 |
+
silently, leaving the UI stuck on Walk Explorer.
|
| 56 |
+
|
| 57 |
+
**Workaround:** Refresh the page (F5 / ⌘R) and navigate to the desired tab
|
| 58 |
+
*before* running Walk. All tabs function correctly on a fresh page load.
|
| 59 |
+
The bug only appears after Walk results populate the feature table.
|
| 60 |
+
|
| 61 |
+
**Affected version:** Gradio 6.12.0 (pinned in `requirements.txt`).
|
| 62 |
+
Upgrading Gradio may resolve it once the upstream issue is fixed.
|
| 63 |
+
|
| 64 |
## Credits
|
| 65 |
|
| 66 |
- **LARQL / LQL / vindex format:** Chris Hayuk ([@chrishayuk](https://github.com/chrishayuk))
|
app.py
CHANGED
|
@@ -413,6 +413,13 @@ with gr.Blocks(title="LARQL Explorer") as demo:
|
|
| 413 |
wrap=True,
|
| 414 |
column_widths=["80px", "90px", "80px", "110px", "140px", "80px", "auto"],
|
| 415 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 416 |
|
| 417 |
walk_btn.click(
|
| 418 |
do_walk,
|
|
|
|
| 413 |
wrap=True,
|
| 414 |
column_widths=["80px", "90px", "80px", "110px", "140px", "80px", "auto"],
|
| 415 |
)
|
| 416 |
+
gr.Markdown(
|
| 417 |
+
"_💡 **Tip:** If clicking other tabs stops working after running Walk, "
|
| 418 |
+
"refresh the page (F5) and navigate to the desired tab first. "
|
| 419 |
+
"This is a Gradio 6.12 interaction bug that only appears after "
|
| 420 |
+
"the feature table is populated._",
|
| 421 |
+
visible=True,
|
| 422 |
+
)
|
| 423 |
|
| 424 |
walk_btn.click(
|
| 425 |
do_walk,
|