Преглед на файлове

Fix the checkbox to disable the Welcome page

Recently, we reimplemented the Welcome page in React. Unfortunately, we
broke the checkbox that enables/disables the Welcome page and it would
allow checking but wouldn't allow unchecking.
master
Lyubomir Marinov преди 9 години
родител
ревизия
b8a6eb4768
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      react/features/welcome/components/WelcomePage.web.js

+ 1
- 1
react/features/welcome/components/WelcomePage.web.js Целия файл

95
      */
95
      */
96
     _onDisableWelcomeChange(event) {
96
     _onDisableWelcomeChange(event) {
97
         this.setState({
97
         this.setState({
98
-            enableWelcomePage: !event.target.value
98
+            enableWelcomePage: !event.target.checked
99
         }, () => {
99
         }, () => {
100
             APP.settings.setWelcomePageEnabled(this.state.enableWelcomePage);
100
             APP.settings.setWelcomePageEnabled(this.state.enableWelcomePage);
101
         });
101
         });

Loading…
Отказ
Запис