Fix pasting of value in Input fields (#4555)

* Fix logging and logger issues

* onPaste submit value + pasted text (#4553)
This commit is contained in:
Nicolas Gotchac
2017-02-15 13:37:58 +01:00
committed by Jaco Greeff
parent 3218c365e9
commit 8aaa18d75d
5 changed files with 20 additions and 11 deletions

View File

@@ -218,10 +218,11 @@ export default class Input extends Component {
}
onPaste = (event) => {
const value = event.clipboardData.getData('Text');
const { value } = event.target;
const pasted = event.clipboardData.getData('Text');
window.setTimeout(() => {
this.onSubmit(value);
this.onSubmit(value + pasted);
}, 0);
}