1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test/integration
Michał Miszczyszyn 669225263d Allow onClick on next/link component's child (#4474)
Allow `onClick` on `next/link` child. This should not be a breaking change, but it's a very useful feature. Real-life use cases include: analytics or closing menu on navigation, and other.

- [x] allow optional `onClick` on `next/link` component's child
- [x] call original `child.props.onClick(e)` before `this.linkClicked(e)`
- [x] add integration tests
- [x] cancel the navigation if `e.defaultPrevented === true`

Fixes #1490
2018-05-27 20:47:02 +02:00
..
app-document Expose app.js (#4129) 2018-04-12 10:33:22 +02:00
babel Use custom Babel loader to avoid using separate Babel copies for loader and loader options (#4417) 2018-05-23 20:26:57 +02:00
basic Allow onClick on next/link component's child (#4474) 2018-05-27 20:47:02 +02:00
config Implement new next/config keys (#3909) 2018-02-27 17:50:14 +01:00
custom-server Upgrade standard.js (#4064) 2018-03-27 20:11:03 +02:00
dist-dir Add build manifest (#4119) 2018-04-12 09:47:42 +02:00
ondemand Merge branch 'master' into fix/canary 2018-01-13 06:33:19 +01:00
production Set cache-control public (again) (#4322) 2018-05-19 21:43:18 +02:00
static Add build manifest (#4119) 2018-04-12 09:47:42 +02:00