Skip to content

Commit

Permalink
fix: send event to onText callback
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Feb 24, 2018
1 parent 1e1d8cd commit 5546bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DropArea/index.ts
Expand Up @@ -66,7 +66,7 @@ export class DropArea extends Component<IDropAreaProps, IDropAreaState> {
if (dataTransfer.items && dataTransfer.items.length) {
dataTransfer.items[0].getAsString((text) => {
if (this.mounted) {
this.props.onText(text);
this.props.onText(text, event);
}
});
}
Expand Down

0 comments on commit 5546bdc

Please sign in to comment.