question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Essentials: 6.3.x breaks the browser HTML inspector usage

See original GitHub issue

Describe the bug

With @storybook/addon-essentials v6.3.x (up to v6.3.1 for now), I can’t use the native HTML inspector of my browser (reproductible in Firefox and Chrome at least).

Using the contextual menu “inspect” option, or the inspector button at the top left of the dev tools, the result is always the same, it briefly selects the right element and then “goes back” to the <div id="root"> element.

To Reproduce

  1. Install @storybook/addon-essentials@6.3.1
  2. Enable it in the Storybook main configuration
  3. Start Storybook
  4. Go to any story
  5. Right click on an element and select the “Inspect” menu item

The selected element in the HTML dev tool is always <div id="root">

System

Environment Info:

  System:
    OS: Linux 5.12 Fedora 34 (Workstation Edition) 34 (Workstation Edition)
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Node: 14.17.1 - ~/.nvm/versions/node/v14.17.1/bin/node
    Yarn: 2.4.2 - /usr/bin/yarn
    npm: 6.14.13 - ~/.nvm/versions/node/v14.17.1/bin/npm
  Browsers:
    Firefox: 89.0.2
  npmPackages:
    @storybook/addon-essentials: 6.2.9 => 6.2.9 

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bummzackcommented, Jun 30, 2021

Can confirm that 6.3.2 also fixes the issue. Thanks a lot @shilman

2reactions
shilmancommented, Jun 30, 2021

Thanks for testing! I released the fix on 6.3.2 (or what I think is the fix). Closing this for now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use Your Browser's Inspect Element Tool to Edit ...
Learn how to use your browser's inspect element tool to check a webpage's HTML code. Also, edit and troubleshoot webpages locally with it....
Read more >
HTML and CSS Tutorial - Nanyang Technological University
This is my first web page written in HTML. HTML. HTML uses markup tag to markup a document. Use a source-code editor, which...
Read more >
Inspect Element: How to Change Any Webpage on Any Browser
Right-click any area of the web page (including blank areas) and then select inspect from the menu. · Access the Firefox settings menu....
Read more >
How to Inspect Element: Simple Methods for Editing a Web Page
Right-click anywhere on the website and choose Inspect. Use the Inspect tool to highlight an element. Click on the element.style property on the ......
Read more >
Chrome DevTools Protocol - GitHub Pages
The Chrome DevTools Protocol allows for tools to instrument, inspect, debug and profile Chromium, Chrome and other Blink-based browsers.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found