Form componentsP2Package: corehelp wanted
描述
Environment
- Package version(s): select 3.15.0
- Operating System: Docker / node 14
- Browser name and version: Chrome latest
Code Sandbox
Link to a minimal repro (fork this code sandbox): https://codesandbox.io/s/blueprint-sandbox-forked-cnc83?file=/src/index.tsx
Steps to reproduce
- Create a MultiSelect
- Place it inside a form
- Select a value, confirm with enter
Actual behavior
The form is submitted.
Expected behavior
The value is added to the tag list and the form remains un-submitted.
Possible solution
Doing event.stopPropagation and event.preventDefault in the onItemSelect handler does not help. Same with overriding tagInputProps.onChange.