diff --git a/src/components/global/DocDemo/index.js b/src/components/global/DocDemo/index.js index d43d6ed2f8a..b7611be1910 100644 --- a/src/components/global/DocDemo/index.js +++ b/src/components/global/DocDemo/index.js @@ -48,6 +48,7 @@ const DocDemo = (props) => { })} title={`Toggle ${mode === 'ios' ? 'iOS' : 'Android'} mode`} onClick={() => setIonicMode(mode)} + key={mode} > {mode === 'ios' ? 'iOS' : 'Android'} diff --git a/src/components/global/Playground/index.tsx b/src/components/global/Playground/index.tsx index 2ef8505f1e0..6de23298974 100644 --- a/src/components/global/Playground/index.tsx +++ b/src/components/global/Playground/index.tsx @@ -567,22 +567,22 @@ export default function Playground({ {renderIframes ? [ -
+
{!iframesLoaded && renderLoadingScreen()} {/* - We render two iframes, one for each mode. - When the set mode changes, we hide one frame and - show the other. This is done to avoid flickering - and doing unnecessary reloads when switching modes. - */} + We render two iframes, one for each mode. + When the set mode changes, we hide one frame and + show the other. This is done to avoid flickering + and doing unnecessary reloads when switching modes. + */} {devicePreview ? [ -
+
, -
+
@@ -590,6 +590,7 @@ export default function Playground({ ] : [ ,