Explorar el Código

Merge branch 'feat/show-suggestions-for-joining-user-group' into fetch-user-not-subscribed

# Conflicts:
#	src/client/js/components/Admin/UserGroupDetail/UserGroupUserFormByInput.jsx
itizawa hace 6 años
padre
commit
560fa55004

+ 9 - 4
src/client/js/components/Admin/UserGroupDetail/UserGroupUserFormByInput.jsx

@@ -34,9 +34,14 @@ class UserGroupUserFormByInput extends React.Component {
     this.filterApplicableUsersDebounce = debounce(1000, this.filterApplicableUsers);
   }
 
-  onInputChange(text) {
-    this.setState({ input: text });
-    if (text === '') {
+  /**
+   * input user name to add to the group
+   * @param {string} input
+   */
+  onInputChange(input) {
+    this.setState({ input });
+    // this.props.onInputChange(text);
+    if (input === '') {
       this.setState({ applicableUsers: [] });
     }
   }
@@ -72,7 +77,7 @@ class UserGroupUserFormByInput extends React.Component {
   }
 
   /**
-   * input user name to add to the group
+   * Reflect when forecast is clicked
    * @param {string} input
    */
   handleChange(input) {