-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Strange vue3 code snippet behavior with "icon" based properties in alpha #23224
Comments
same things |
@chakAs3 @kasperpeulen looks like we are incorrectly treating everything with |
@timonbandit using props with on will be treated as an event handler and be considered as action, ideally avoid attributes starting with 'on' or override this in actions property in your preview |
@chakAs3 |
funny the argTypeRegex is buggy because there is 'on' in 'icon' i will see what we can do to fix this |
I believe this is fixed in #25219 (https://github.com/storybookjs/storybook/releases/tag/v8.0.0-alpha.15) |
Indeed this should be fixed already by #25219. I am closing this issue for now. But please let me know if it isn't fixed. |
Describe the bug
While migrating to 7.1.0-alpha-40, in a
vue3-vite
SB project, I'm facing a strange issue when my components contain properties with the string "icon"Instead of simply displaying the property and its string value, it renders a kind of function :
And the code snippet result :
You can preview the issue with the github repository below, I reproduced the issue pretty easily :)
Thanks !
To Reproduce
https://github.com/KevinCarnaille2/sb-vue3-sourcecode-issue
System
Additional context
You can have a look at the "ButtonIcon" story in the docs
No response
Tasks
The text was updated successfully, but these errors were encountered: