@onehat/ui 0.3.77 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.77",
3
+ "version": "0.3.79",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -332,11 +332,10 @@ export function ComboComponent(props) {
332
332
  const filterName = getFilterName();
333
333
  if (Repository.hasFilter(filterName)) {
334
334
  Repository.clearFilters(filterName);
335
- }
336
-
337
- if (Repository.isRemote) {
338
- if (!this.isAutoLoad) {
339
- await Repository.reload();
335
+ if (Repository.isRemote) {
336
+ if (!this.isAutoLoad) {
337
+ await Repository.reload();
338
+ }
340
339
  }
341
340
  }
342
341
  } else {
@@ -645,6 +645,7 @@ function Form(props) {
645
645
 
646
646
  if (self) {
647
647
  self.ref = formRef;
648
+ self.formState = formState;
648
649
  }
649
650
 
650
651
  const sizeProps = {};
@@ -65,6 +65,9 @@ export default function GridRow(props) {
65
65
  }
66
66
 
67
67
  let value;
68
+ if (_.isFunction(config)) {
69
+ return config(item, key);
70
+ }
68
71
  if (_.isPlainObject(config)) {
69
72
  if (config.renderer) {
70
73
  const extraProps = _.omit(config, [
@@ -140,9 +143,6 @@ export default function GridRow(props) {
140
143
  value = item[config];
141
144
  }
142
145
  }
143
- if (_.isFunction(config)) {
144
- value = config(item);
145
- }
146
146
  if (_.isFunction(value)) {
147
147
  return value(key);
148
148
  }