diff --git a/src/components/AttachmentPicker/index.js b/src/components/AttachmentPicker/index.js index 25191883f709..082853285bc4 100644 --- a/src/components/AttachmentPicker/index.js +++ b/src/components/AttachmentPicker/index.js @@ -41,6 +41,10 @@ class AttachmentPicker extends React.Component { // Cleanup after selecting a file to start from a fresh state this.fileInput.value = null; }} + + // We are stopping the event propagation because triggering the `click()` on the hidden input + // causes the event to unexpectedly bubble up to anything wrapping this component e.g. Pressable + onClick={e => e.stopPropagation()} accept={getAcceptableFileTypes(this.props.type)} /> {this.props.children({