whitespace-se / storybook-addon-html

A Storybook addon that extracts and displays compiled syntax-highlighted HTML
Other
95 stars 44 forks source link

Update withHTML.js #94

Closed bluelovers closed 1 year ago

bluelovers commented 1 year ago

This PR changes the default value for the root parameter because the ID was changed from root to storybook-root in Storybook 7.

jeanfredrik commented 1 year ago

Hi bluelovers, I took the liberty to add a description to this PR since it was empty. To make it backwards compatible I think #storybook-root, #root is a better value though. That will work with version 6 as well. It will select the first element that matches the selector.

jeanfredrik commented 1 year ago

This is fixed in v5.1.4