You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A function that is part of the new Zoom component that was introduced as part of this PR #12845 , seems to be breaking storybook addon-docs in IE11. (See screenshots below for errors seen)
The issue originates from the function shown in screenshot below (file lib/components/src/Zoom/Zoom.tsx)
The DOMImplementation.createHTMLDocument() function takes a string as an argument that is the title of the document, however this is non-optional in IE. One can however, pass an empty string to this function which resolves the error.
Steps to reproduce
Run storybook with addon-docs enabled, load it in IE11.
Please specify which version of Storybook and optionally any affected addons that you're running
Bug or support request summary
A function that is part of the new Zoom component that was introduced as part of this PR #12845 , seems to be breaking storybook addon-docs in IE11. (See screenshots below for errors seen)
The issue originates from the function shown in screenshot below
(file lib/components/src/Zoom/Zoom.tsx)
The DOMImplementation.createHTMLDocument() function takes a string as an argument that is the title of the document, however this is non-optional in IE. One can however, pass an empty string to this function which resolves the error.
Steps to reproduce
Run storybook with addon-docs enabled, load it in IE11.
Please specify which version of Storybook and optionally any affected addons that you're running
Affected platforms
Internet Explorer 11
Screenshots / Screencast / Code Snippets (Optional)
Errors seen in browser:
Passing an empty string to the function achieves the same result, and will work in IE11. See below for suggested fix:
The text was updated successfully, but these errors were encountered: