onClick event being ignored by route change on initial click. How do you get a button's event handler to work simultaneously with a route change?

前端 未结 0 2001
谎友^
谎友^ 2021-01-30 08:50

I have a material-ui button that is wrapped inside a react-router-dom Link. When the button is clicked it changes routes to the appropriate path, but the onClick event attached

相关标签:
回答
  • 消灭零回复
提交回复
热议问题