storybookjs / frontpage

🌐 The website for storybook.js.org

Home Page:https://storybook.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] When you open two web pages for comparison, only one frame can be selected.

zhanghengxin opened this issue · comments

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce the behavior

open they:
https://storybook.js.org/docs/get-started/web-components-vite
https://storybook.js.org/docs/get-started/vue3-vite

I cant comparing.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots and/or logs

If applicable, add screenshots and/or logs to help explain your problem.

Environment

  • OS: [e.g. iOS]
  • Node.js version: [e.g. v12.17.0]
  • NPM version: [e.g. 6.14.4]
  • Browser (if applicable): [e.g. chrome, safari]
  • Browser version (if applicable): [e.g. 22]
  • Device (if applicable): [e.g. iPhone6]

Additional context

Add any other context about the problem here.

Move the sb-docs-selected-framework to sessionStorage.

This is by design. The docs site should remember which renderer is selected. Moving it into session storage would only save for the session, so starting a new session would reset it back to the default, react.

If you wish to compare docs for multiple renderers, please use a private/incognito window or different browsers.