Skip to content
Snippets Groups Projects
Commit b347d554 authored by Hinaloe's avatar Hinaloe Committed by Yamagishi Kazutoshi
Browse files

DataTransfer.types may Array-like object (#7827)

parent 7eec279c
No related branches found
No related tags found
No related merge requests found
......@@ -230,7 +230,7 @@ export default class UI extends React.PureComponent {
this.dragTargets.push(e.target);
}
if (e.dataTransfer && e.dataTransfer.types.includes('Files')) {
if (e.dataTransfer && Array.from(e.dataTransfer.types).includes('Files')) {
this.setState({ draggingOver: true });
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment