@onehat/ui 0.2.47 → 0.2.48

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.2.47",
3
+ "version": "0.2.48",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -56,8 +56,9 @@ function NumberElement(props) {
56
56
  onChangeText = (value) => {
57
57
  if (value === '') {
58
58
  value = null; // empty string makes value null
59
+ } else {
60
+ value = parseFloat(value, 10);
59
61
  }
60
- value = parseFloat(value, 10);
61
62
  setLocalValue(value);
62
63
  debouncedSetValueRef.current(value);
63
64
  },
@@ -314,6 +314,9 @@ export default function withFilters(WrappedComponent) {
314
314
  const q = 'q';
315
315
  newFilterFields.push(q);
316
316
  filters.push({ name: q, value: filterQValue, });
317
+ if (Repository.searchAncillary && !Repository.hasBaseParam('searchAncillary')) {
318
+ Repository.setBaseParam('searchAncillary', true);
319
+ }
317
320
  }
318
321
  setFilterFields(newFilterFields);
319
322