Pārlūkot izejas kodu

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

This will prevent the quality dialog from closing when changing
desired quality level.
master
Leonard Kim 8 gadus atpakaļ
vecāks
revīzija
830ec3d097

+ 4
- 3
react/features/video-quality/components/VideoQualityLabel.web.js Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt