Skip to content
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

Remove click event object from breadcrumb action args #241

Merged
merged 3 commits into from
Oct 26, 2018

Conversation

andrewpye
Copy link
Member

Fixes #240 by swallowing the click event object when invoking breadcrumb actions.

Copy link
Member

@vladucu vladucu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

One question...but looks good otherwise

@@ -15,7 +15,7 @@
<button
class="Polaris-Breadcrumbs__Breadcrumb"
type="button"
onclick={{action breadcrumb.onAction}}
onclick={{action "fireAction" breadcrumb.onAction}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be the same result just doing <button {{action breadcrumb.onAction}}...?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep! 👍 Going that way in the interest of cleaner code over matching the Polaris source exactly

@andrewpye andrewpye merged commit b1f6cba into dev Oct 26, 2018
@delete-merged-branch delete-merged-branch bot deleted the fix/breadcrumb-action-args branch October 26, 2018 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants