Ver código fonte

fix(toolbox): hide toolbox when mouse outside toolbox area

master
hmuresan 4 anos atrás
pai
commit
24bf5a2dc3
1 arquivos alterados com 6 adições e 5 exclusões
  1. 6
    5
      react/features/toolbox/components/web/Toolbox.js

+ 6
- 5
react/features/toolbox/components/web/Toolbox.js Ver arquivo

@@ -368,10 +368,7 @@ class Toolbox extends Component<Props> {
368 368
         return (
369 369
             <div
370 370
                 className = { rootClassNames }
371
-                id = 'new-toolbox'
372
-                onFocus = { this._onTabIn }
373
-                onMouseOut = { this._onMouseOut }
374
-                onMouseOver = { this._onMouseOver }>
371
+                id = 'new-toolbox'>
375 372
                 { this._renderToolboxContent() }
376 373
             </div>
377 374
         );
@@ -1300,7 +1297,11 @@ class Toolbox extends Component<Props> {
1300 1297
 
1301 1298
         return (
1302 1299
             <div className = { containerClassName }>
1303
-                <div className = 'toolbox-content-wrapper'>
1300
+                <div
1301
+                    className = 'toolbox-content-wrapper'
1302
+                    onFocus = { this._onTabIn }
1303
+                    onMouseOut = { this._onMouseOut }
1304
+                    onMouseOver = { this._onMouseOver }>
1304 1305
                     <div className = 'toolbox-content-items'>
1305 1306
                         { this._renderAudioButton() }
1306 1307
                         { this._renderVideoButton() }

Carregando…
Cancelar
Salvar