Commit 2a415ce
fix: make Show Simulation Box checkbox toggleable (fixes #308)
The useEffect in View.tsx that synced renderSettings.showSimulationBox
with embedConfig.showSimulationBox lacked an isEmbeddedMode guard.
Since embedConfig.showSimulationBox defaults to true, any user change
to the checkbox was immediately overwritten back to true on every render
cycle, making the checkbox appear permanently enabled and unresponsive.
Fix: wrap the sync logic in an isEmbeddedMode check so it only runs
when the app is actually embedded via URL config. Non-embedded mode now
allows free toggling; embedded mode continues to have embedConfig take
precedence as before.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9dd7751 commit 2a415ce
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
409 | 412 | | |
410 | 413 | | |
411 | 414 | | |
412 | 415 | | |
413 | 416 | | |
414 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
415 | 423 | | |
416 | 424 | | |
417 | 425 | | |
| |||
0 commit comments