RouterLink click.native handler stops being called after page rerender

This issue has been created since 2022-09-14.

Version

2.7.10

Reproduction link

codesandbox.io

Steps to reproduce

  1. Click link "Go about"
  2. See in console "on click"
  3. Click link "Go home"
  4. Click link "Go about"

What is expected?

The console will "on click" twice

What is actually happening?

In the console "on click" 1 time

youngpirate32 wrote this answer on 2022-09-14

If load page async (https://codesandbox.io/s/angry-sun-y90on7?file=/src/main.js), then handler is never called

nieyuyao wrote this answer on 2022-09-25

You can use span as slot for router-link and bind click handler to it.

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-09-27
Star Count 199644
Watcher Count 6098
Fork Count 32848
Issue Count 587

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Running without importing React? 3 2022-08-02 2022-09-02
Tests failed if pymongo==3.12.0 is used 1 2021-07-26 2022-07-18
Add graphql testing support 0 2022-03-27 2022-08-02
Unable to login to Jio TV in Kodi 2 2021-11-08 2022-08-08
Configure preferred modhosting site 1 2022-07-23 2022-08-02
Vacuum database to free up unused space 0 2022-04-15 2022-07-28
Relative env-dir breaks tools 0 2022-01-06 2022-09-17
Regex check in Raisin::Entity flags numbers as strings for JSON::XS 0 2021-10-22 2022-08-01
'Start on Boot' got reset after reboot on Windows 11 1 2021-10-12 2022-09-04
Can not stream with RtmpStreamer? 2 2020-02-11 2022-08-11
Replace custom "when" parameters in 'owncloud' role 0 2022-09-01 2022-09-14
`worker_scheduler_test` ought to be updated 0 2022-04-12 2022-04-21
Use `validator` for data validation instead of reinventing-wheel 0 2022-04-12 2022-04-21
`api_collector` is accepting both `Query`/`Header` with type `*url.Values` 0 2022-04-12 2022-04-21
`didgen` not working correctly when called from `directrun.go` 0 2022-04-12 2022-04-21
您 ISP 提供的 DHCP功能发生错误 0 2021-10-19 2022-09-10
Installing old node version fails on python 0 2022-04-26 2022-09-19
Newer 16 versions missing 1 2022-06-21 2022-09-19
`nodenv install` tries to use python and fails on MacOS Monterey 12.3 and later and fails 1 2022-06-06 2022-09-19
About torchvision and torch update, some import need to be revised 1 2022-02-03 2022-09-12
Failed to import mmdetection 3 2022-09-05 2022-09-01
faust2sc.py does not support groups 1 2022-04-06 2022-09-02
Add images in Presentation and in Rich text 1 2021-09-23 2022-08-15
Request for adding preparedStatement name into logged query data 3 2021-11-30 2022-08-26
Crashloop after sharing a link 2 2022-06-11 2022-08-30
[BUG]在使用logseq的一个表格插件时出现了问题,插件作者排查后表示可能时lucky sheet的bug 0 2022-08-22 2022-09-18
Future Release Branches Frozen For Merging | branch:release-4.7 0 2020-06-28 2022-09-17
Deprecate conditional compilation 49 2021-07-27 2022-08-20
Fcos kitti mono_det_demo TypeError: list indices must be integers or slices, not str 3 2022-06-21 2022-09-16
cannot unmarshal !!map into config.Token Latest docker version 5 2021-06-30 2022-08-26
Shaded plugin ars do not play well with `android_binary` 0 2021-12-03 2022-09-25
只有我自己的侧边栏编译后有两个Iod=app吗? 3 2021-06-15 2022-08-17
Add sorting in Replay Index 0 2022-04-04 2022-09-13
GraphQL error after installing Formie plugin 3 2021-10-14 2022-09-27
The homepage is down 5 2021-06-30 2022-09-15
CVE-2021-44228: Apache Log4j 2 2 2021-12-14 2022-07-23
Cannot depend on generated client 7 2021-05-21 2022-09-24
v0.29: Changes to `invalid_geo_field` error 0 2022-08-31 2022-09-17
Document a way to install libvips without the dependecy hell 3 2022-04-05 2022-08-09
Inference API with GPT2 {"error": "Unknown error"} 2 2022-02-14 2022-09-10
Clean up `topics` vs `practices` in `config.json` 0 2021-11-29 2022-08-21
Clipboard size limit 8 2021-08-16 2022-08-09
'Info' icons containing tooltip information is not accessible with the keyboard present under 'Settings' blade. 1 2021-09-08 2022-09-24
DOMXPath::query(): Undefined namespace prefix 4 2018-03-07 2022-09-22
做一个小小的纠正,vite虽然是做了tree shaking,但是对于组件库,还是全局导入 3 2021-08-03 2022-08-14
multi-platform different executables 1 2022-04-04 2022-08-21
How would I fix these animations to export correctly through Lottie or bodymovin plugins? 1 2022-01-16 2022-09-06
Facing that "ERR_CONNECTION_RESET" error 1 2022-08-11 2022-09-15
Symfony CLI cannot use (anyenv&phpenv) PHP 2 2021-01-29 2022-08-09
Live mode doesn't automatically generate output for examples 2 2022-03-30 2022-08-17