Fix pasting of value in Input fields (#4555)
* Fix logging and logger issues * onPaste submit value + pasted text (#4553)
This commit is contained in:
committed by
Jaco Greeff
parent
3218c365e9
commit
8aaa18d75d
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user