fix(video-quality): change click handler location on label

This will prevent the quality dialog from closing when changing
desired quality level.
This commit is contained in:
Leonard Kim 2017-08-10 09:14:04 -07:00 committed by yanas
parent 995a25ee15
commit 830ec3d097
1 changed files with 4 additions and 3 deletions

View File

@ -163,14 +163,15 @@ export class VideoQualityLabel extends Component {
return (
<div
className = { classNames }
id = 'videoResolutionLabel'
onClick = { this._onDialogToggle }>
id = 'videoResolutionLabel'>
<AKInlineDialog
content = { <VideoQualityDialog /> }
isOpen = { this.state.showVideoQualityDialog }
onClose = { this._onDialogClose }
position = { 'left top' }>
<div className = 'video-quality-label-status'>
<div
className = 'video-quality-label-status'
onClick = { this._onDialogToggle }>
{ _audioOnly
? <i className = 'icon-visibility-off' />
: this._mapResolutionToTranslation(_resolution) }