fix(rn): adds check for blur function on currentTarget

This commit is contained in:
tmoldovan8x8 2021-06-11 13:53:10 +03:00 committed by GitHub
parent 2549f83313
commit 51a996d0e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ export default class AbstractButton<P: Props, S: *> extends Component<P, S> {
afterClick && afterClick(e);
// blur after click to release focus from button to allow PTT.
e && e.currentTarget && e.currentTarget.blur();
e?.currentTarget?.blur && e.currentTarget.blur();
}
/**