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
I upgraded from 6.0 to 6.1 and noticed the new rendering for Vue stories as described in #11400. First of all, thank you for this work. It is an improvement overall. However, I noticed that both static and dynamic class attributes are being stripped from the source rendering removing important context from the story. Please see the following screenshots and note the two plain divs that start the template. They should both have a class attribute.
The stories are defined in an MDX file. Here is the code for the story:
Thanks @dcrall, I'm guessing this is a bug in the vue rendering. As a temporary workaround you can set docs.source.type parameter to "code" to restore the old behavior.
#13326
Both static class (`class="foo"`) and dynamic class (`:class="..."`)
are ignored because Vue treats them as special attribute. They don't
exist in normal vnode.data.attrs nor componentOptions.propsData.
I upgraded from 6.0 to 6.1 and noticed the new rendering for Vue stories as described in #11400. First of all, thank you for this work. It is an improvement overall. However, I noticed that both static and dynamic class attributes are being stripped from the source rendering removing important context from the story. Please see the following screenshots and note the two plain divs that start the template. They should both have a class attribute.
The stories are defined in an MDX file. Here is the code for the story:
Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: