瀏覽代碼

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

This will prevent the quality dialog from closing when changing
desired quality level.
j8
Leonard Kim 8 年之前
父節點
當前提交
830ec3d097
共有 1 個檔案被更改,包括 4 行新增3 行删除
  1. 4
    3
      react/features/video-quality/components/VideoQualityLabel.web.js

+ 4
- 3
react/features/video-quality/components/VideoQualityLabel.web.js 查看文件

163
         return (
163
         return (
164
             <div
164
             <div
165
                 className = { classNames }
165
                 className = { classNames }
166
-                id = 'videoResolutionLabel'
167
-                onClick = { this._onDialogToggle }>
166
+                id = 'videoResolutionLabel'>
168
                 <AKInlineDialog
167
                 <AKInlineDialog
169
                     content = { <VideoQualityDialog /> }
168
                     content = { <VideoQualityDialog /> }
170
                     isOpen = { this.state.showVideoQualityDialog }
169
                     isOpen = { this.state.showVideoQualityDialog }
171
                     onClose = { this._onDialogClose }
170
                     onClose = { this._onDialogClose }
172
                     position = { 'left top' }>
171
                     position = { 'left top' }>
173
-                    <div className = 'video-quality-label-status'>
172
+                    <div
173
+                        className = 'video-quality-label-status'
174
+                        onClick = { this._onDialogToggle }>
174
                         { _audioOnly
175
                         { _audioOnly
175
                             ? <i className = 'icon-visibility-off' />
176
                             ? <i className = 'icon-visibility-off' />
176
                             : this._mapResolutionToTranslation(_resolution) }
177
                             : this._mapResolutionToTranslation(_resolution) }

Loading…
取消
儲存