Button within Link: click events behavior

I created a demo app to clarify what happens regarding click events when you put a Button inside a Link component.

In short, clicking the Button only triggers the Button’s click event, not the Link’s click event—but it will nonetheless open the Link url if that is set. I think clicking the Button used to also trigger the Link’s click event as of a year or two ago (possibly before this change?), but I’m not sure.

See what I mean here:

Clone link:

Possibly related:

1 Like