coreui-vue icon indicating copy to clipboard operation
coreui-vue copied to clipboard

CLink emit click's argument contains the mouse events

Open gfoidl opened this issue 2 years ago • 6 comments

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.

https://github.com/coreui/coreui-vue/blob/a5c0ad536950d30cac0ef24fd4982b44a9a1df57/packages/coreui-vue/src/components/link/CLink.ts#L44-L46

gfoidl avatar May 04 '22 14:05 gfoidl

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[bot] avatar Jul 05 '22 14:07 github-actions[bot]

Please don't close.

gfoidl avatar Jul 05 '22 14:07 gfoidl

@gfoidl @mrholek what about

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

args order?

xidedix avatar Jul 06 '22 11:07 xidedix

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

gfoidl avatar Jul 06 '22 12:07 gfoidl

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[bot] avatar Sep 04 '22 14:09 github-actions[bot]

Please don't close, merge instead 😉

gfoidl avatar Sep 04 '22 15:09 gfoidl

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[bot] avatar Nov 04 '22 14:11 github-actions[bot]

Please don't close, merge instead 😉

gfoidl avatar Nov 04 '22 14:11 gfoidl

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[bot] avatar Jan 05 '23 14:01 github-actions[bot]

Please don't close, merge instead

gfoidl avatar Jan 09 '23 09:01 gfoidl

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[bot] avatar Mar 11 '23 14:03 github-actions[bot]

Please don't close, merge instead

gfoidl avatar Mar 11 '23 17:03 gfoidl

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[bot] avatar May 11 '23 14:05 github-actions[bot]