mirror of
https://github.com/outline/outline.git
synced 2026-11-22 22:02:35 +03:00
fix: File upload input must stopPropagation of click events otherwise click event is triggered on sidebar menu item and file choose dialog never appears
closes #1065
This commit is contained in:
1 parent
e72608938a
commit
3a8cd2bb35
1 file changed
+1
@@ -99,6 +99,7 @@ class CollectionMenu extends React.Component<Props> {
|
||||
type="file"
|
||||
ref={ref => (this.file = ref)}
|
||||
onChange={this.onFilePicked}
|
||||
onClick={ev => ev.stopPropagation()}
|
||||
accept="text/markdown, text/plain"
|
||||
/>
|
||||
</VisuallyHidden>
|
||||
|
||||
Reference in new issue
Block a user