Ver código fonte

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

j8
tmoldovan8x8 4 anos atrás
pai
commit
51a996d0e0
Nenhuma conta vinculada ao e-mail do autor do commit

+ 1
- 1
react/features/base/toolbox/components/AbstractButton.js Ver arquivo

257
         afterClick && afterClick(e);
257
         afterClick && afterClick(e);
258
 
258
 
259
         // blur after click to release focus from button to allow PTT.
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
     /**

Carregando…
Cancelar
Salvar