We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75c1dc0 commit 91f7811Copy full SHA for 91f7811
src/components/global/Playground/index.tsx
@@ -444,10 +444,15 @@ export default function Playground({
444
445
/**
446
* Load the stored mode and/or usage target, if present
447
- * from previously being toggled.
+ * from previously being toggled. Skip the usage target
448
+ * reset when defaultFramework is set, since the initial
449
+ * value is already correct and user tab clicks should
450
+ * be preserved.
451
*/
452
setIonicMode(getDefaultMode());
- setUsageTarget(getDefaultUsageTarget());
453
+ if (!defaultFramework) {
454
+ setUsageTarget(getDefaultUsageTarget());
455
+ }
456
457
458
* If the iframes weren't already loaded, load them now.
0 commit comments