Skip to content

Fix click event in Vue button example#1686

Merged
ndelangen merged 3 commits intostorybookjs:masterfrom
gustojs:patch-1
Aug 18, 2017
Merged

Fix click event in Vue button example#1686
ndelangen merged 3 commits intostorybookjs:masterfrom
gustojs:patch-1

Conversation

@gustojs
Copy link
Copy Markdown
Contributor

@gustojs gustojs commented Aug 18, 2017

Issue:

The Button story in Vue examples listens for a custom 'click' event emited from MyButton.vue component, but MyButton.vue lacks such a functionality. When the button is clicked, only an empty method is called.

What I did

The change I suggested is the less intrusive one, keeping the method code as opposite to removing it and emitting an event directly from the template.

The story listens for a custom 'click' event emited from `MyButton.vue` component, but `MyButton.vue` lacks such a functionality. When the button is clicked, only an empty method is called.

The change I suggested is the less intrusive one, keeping the method code as opposite to removing it and emitting an event directly from the template.
@ndelangen ndelangen requested review from kazupon and ndelangen August 18, 2017 19:45
@ndelangen ndelangen self-assigned this Aug 18, 2017
@ndelangen ndelangen added vue maintenance User-facing maintenance tasks labels Aug 18, 2017
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 18, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@3007b37). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1686   +/-   ##
=========================================
  Coverage          ?   20.87%           
=========================================
  Files             ?      251           
  Lines             ?     5629           
  Branches          ?      686           
=========================================
  Hits              ?     1175           
  Misses            ?     3913           
  Partials          ?      541

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3007b37...855df90. Read the comment docs.

@ndelangen ndelangen merged commit 2f5000d into storybookjs:master Aug 18, 2017
@ndelangen
Copy link
Copy Markdown
Member

Thank you @gustojs for fixing this! Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance User-facing maintenance tasks vue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants