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 ( return (
<div <div
className = { classNames } className = { classNames }
id = 'videoResolutionLabel' id = 'videoResolutionLabel'>
onClick = { this._onDialogToggle }>
<AKInlineDialog <AKInlineDialog
content = { <VideoQualityDialog /> } content = { <VideoQualityDialog /> }
isOpen = { this.state.showVideoQualityDialog } isOpen = { this.state.showVideoQualityDialog }
onClose = { this._onDialogClose } onClose = { this._onDialogClose }
position = { 'left top' }> position = { 'left top' }>
<div className = 'video-quality-label-status'> <div
className = 'video-quality-label-status'
onClick = { this._onDialogToggle }>
{ _audioOnly { _audioOnly
? <i className = 'icon-visibility-off' /> ? <i className = 'icon-visibility-off' />
: this._mapResolutionToTranslation(_resolution) } : this._mapResolutionToTranslation(_resolution) }