fix(rn): adds check for blur function on currentTarget
This commit is contained in:
parent
2549f83313
commit
51a996d0e0
|
@ -257,7 +257,7 @@ export default class AbstractButton<P: Props, S: *> extends Component<P, S> {
|
||||||
afterClick && afterClick(e);
|
afterClick && afterClick(e);
|
||||||
|
|
||||||
// blur after click to release focus from button to allow PTT.
|
// blur after click to release focus from button to allow PTT.
|
||||||
e && e.currentTarget && e.currentTarget.blur();
|
e?.currentTarget?.blur && e.currentTarget.blur();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue