Fix @typescript-eslint/no-unsafe-call errors

This commit is contained in:
Labhansh Agrawal 2021-03-29 01:24:27 +05:30
parent 9b0a57db13
commit c347ce8483
15 changed files with 40 additions and 20 deletions

View file

@ -254,13 +254,14 @@ export default class Term extends React.PureComponent<TermProps> {
// intercepting paste event for any necessary processing of
// clipboard data, if result is falsy, paste event continues
onWindowPaste = (e: any) => {
onWindowPaste = (e: Event) => {
if (!this.props.isTermActive) return;
const processed = processClipboard();
if (processed) {
e.preventDefault();
e.stopPropagation();
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
(this.term as any)._core.handler(processed);
}
};