@steroidsjs/core 2.2.76 → 2.2.79

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.
@@ -158,6 +158,7 @@ function useDataSelect(config) {
158
158
  if ([9, 27].includes(e.which)) {
159
159
  e.preventDefault();
160
160
  setIsOpened(false);
161
+ setIsFocused(false);
161
162
  }
162
163
  // Keys: enter (select and close)
163
164
  if (e.which === 13 && isOpened) {
@@ -178,8 +179,8 @@ function useDataSelect(config) {
178
179
  }
179
180
  // Keys: space (toggle select)
180
181
  if (e.which === 32 && isOpened) {
181
- e.preventDefault();
182
182
  if (hoveredId) {
183
+ e.preventDefault();
183
184
  // Select hovered
184
185
  setSelectedIds(hoveredId);
185
186
  }
package/hooks/useFetch.js CHANGED
@@ -128,6 +128,7 @@ function useFetch(rawConfig) {
128
128
  if (newConfig) {
129
129
  setConfig(__assign(__assign(__assign({}, config), newConfig), { params: __assign(__assign({}, config === null || config === void 0 ? void 0 : config.params), newConfig === null || newConfig === void 0 ? void 0 : newConfig.params) }));
130
130
  }
131
+ setAxiosError(null);
131
132
  setData(null);
132
133
  if (!config) return [3 /*break*/, 5];
133
134
  setIsLoading(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.76",
3
+ "version": "2.2.79",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {