gearheads
/
mastodon
Archived
2
0
Fork 0

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

gh/stable
Hinaloe 2018-06-18 01:10:58 +09:00 committed by Yamagishi Kazutoshi
parent 7eec279c7f
commit b347d55432
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ export default class UI extends React.PureComponent {
this.dragTargets.push(e.target); 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 }); this.setState({ draggingOver: true });
} }
} }