homeflowjs 0.9.19 → 0.9.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,7 +101,7 @@ export const createUser = (payload) => (dispatch, getState) => {
101
101
  }
102
102
  });
103
103
 
104
- window.dispatchEvent(event);
104
+ document.dispatchEvent(event);
105
105
 
106
106
  return Promise.all(promises);
107
107
  })
@@ -153,7 +153,7 @@ class InstantValuation extends Component {
153
153
  }
154
154
  });
155
155
 
156
- window.dispatchEvent(event);
156
+ document.dispatchEvent(event);
157
157
  });
158
158
  });
159
159
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "0.9.19",
3
+ "version": "0.9.22",
4
4
  "description": "JavaScript toolkit for Homeflow themes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -5,11 +5,12 @@ import { setSearchField } from '../../actions/search.actions';
5
5
 
6
6
  // GenericSearchField for anything not already available as a component
7
7
 
8
- const GenericSelect = ({ name, value, children, setSearchField }) => (
8
+ const GenericSelect = ({ name, value, children, setSearchField, ...otherProps }) => (
9
9
  <select
10
10
  name={name}
11
11
  value={value}
12
12
  onChange={e => setSearchField({ [e.target.name]: e.target.value })}
13
+ {...otherProps}
13
14
  >
14
15
  {children}
15
16
  </select>