Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CLink emit click's argument contains the mouse events #207

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

Closed
gfoidl wants to merge 2 commits into coreui:main from gfoidl:link-mouse-event

Conversation

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
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

Copy link
Contributor Author

gfoidl commented Jul 5, 2022

Please don't close.

Copy link
Member

xidedix commented Jul 6, 2022

@gfoidl @mrholek what about

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

args order?

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!

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

Copy link
Contributor Author

gfoidl commented Sep 4, 2022

Please don't close, merge instead 😉

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

Copy link
Contributor Author

gfoidl commented Nov 4, 2022

Please don't close, merge instead 😉

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

Copy link
Contributor Author

gfoidl commented Jan 9, 2023

Please don't close, merge instead

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

Copy link
Contributor Author

gfoidl commented Mar 11, 2023

Please don't close, merge instead

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

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
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /