Browse Source

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

master
tmoldovan8x8 4 years ago
parent
commit
51a996d0e0
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      react/features/base/toolbox/components/AbstractButton.js

+ 1
- 1
react/features/base/toolbox/components/AbstractButton.js View File

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
     /**

Loading…
Cancel
Save