Skip to content

Conversation

gfoidl
Copy link
Contributor

@gfoidl gfoidl commented May 4, 2022

W/o providing the (native) mouse event no consumer can react accordingly.
With this change the mouse event is emitted as first argument in the click event.

const handleClick = () => {
emit('click', props.href)
}

W/o providing the (native) mouse event no consumer can react accordingly.
With this change the mouse event is emitted as first argument in the click event.
@gfoidl gfoidl changed the title CLink emit click's argument should contain the mouse events CLink emit click's argument contains the mouse events May 5, 2022
@github-actions
Copy link

github-actions bot commented Jul 5, 2022

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

@gfoidl
Copy link
Contributor Author

gfoidl commented Jul 5, 2022

Please don't close.

@xidedix
Copy link
Member

xidedix commented Jul 6, 2022

@gfoidl @mrholek what about

emit('click', props.href, mouseEvent)

args order?

@gfoidl
Copy link
Contributor Author

gfoidl commented Jul 6, 2022

@xidedix IMO your suggestion makes more sense, as the mouseEvent can be discarded more easily if not used, and this change is a less breaking-change.
Thanks for the suggestion!

@github-actions
Copy link

github-actions bot commented Sep 4, 2022

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

@gfoidl
Copy link
Contributor Author

gfoidl commented Sep 4, 2022

Please don't close, merge instead 😉

@github-actions
Copy link

github-actions bot commented Nov 4, 2022

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

@gfoidl
Copy link
Contributor Author

gfoidl commented Nov 4, 2022

Please don't close, merge instead 😉

@github-actions
Copy link

github-actions bot commented Jan 5, 2023

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

@gfoidl
Copy link
Contributor Author

gfoidl commented Jan 9, 2023

Please don't close, merge instead

@github-actions
Copy link

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

@gfoidl
Copy link
Contributor Author

gfoidl commented Mar 11, 2023

Please don't close, merge instead

@github-actions
Copy link

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

@github-actions github-actions bot closed this May 19, 2023
@gfoidl gfoidl deleted the link-mouse-event branch May 22, 2024 15:58
@gfoidl
Copy link
Contributor Author

gfoidl commented Jun 26, 2025

@mrholek another one that the bot closed, but it should get addressed instead.
Why is that bot closing contributions w/o interaction of someone from the team?

const handleClick = () => {
emit('click', props.href)
const handleClick = (mouseEvent: MouseEvent) => {
emit('click', props.href, mouseEvent)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the vue-router this must be

emit('click', mouseEvent, props.href)

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

Successfully merging this pull request may close these issues.

2 participants