Polaris-react: <Form /> submits when a child <Link /> gets clicked

Created on 31 Oct 2018  路  2Comments  路  Source: Shopify/polaris-react

Issue summary

<Form /> submits when a child <Link /> with an onClick callback gets clicked. Can be prevented by calling preventDefault in the link's click handler.

Reduced test case

Example here.

Specifications

  • Are you using the React components? (Y/N): Y
  • Polaris version number: v2.12.1
  • Browser: Chrome v69.0
  • Device: MacBook
  • Operating System: OSX 10.13
馃悰Bug

All 2 comments

I've confirmed that this works with v3 in a codesandbox so going to close this.

Was this page helpful?
0 / 5 - 0 ratings