소스 검색

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

j8
tmoldovan8x8 3 년 전
부모
커밋
51a996d0e0
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      react/features/base/toolbox/components/AbstractButton.js

+ 1
- 1
react/features/base/toolbox/components/AbstractButton.js 파일 보기

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

Loading…
취소
저장