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

This commit is contained in:
hmuresan 2021-04-19 14:18:28 +03:00 committed by Horatiu Muresan
parent 6ee868032e
commit 24bf5a2dc3
1 changed files with 6 additions and 5 deletions

View File

@ -368,10 +368,7 @@ class Toolbox extends Component<Props> {
return (
<div
className = { rootClassNames }
id = 'new-toolbox'
onFocus = { this._onTabIn }
onMouseOut = { this._onMouseOut }
onMouseOver = { this._onMouseOver }>
id = 'new-toolbox'>
{ this._renderToolboxContent() }
</div>
);
@ -1300,7 +1297,11 @@ class Toolbox extends Component<Props> {
return (
<div className = { containerClassName }>
<div className = 'toolbox-content-wrapper'>
<div
className = 'toolbox-content-wrapper'
onFocus = { this._onTabIn }
onMouseOut = { this._onMouseOut }
onMouseOver = { this._onMouseOver }>
<div className = 'toolbox-content-items'>
{ this._renderAudioButton() }
{ this._renderVideoButton() }