@onehat/ui 0.3.106 → 0.3.108

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.106",
3
+ "version": "0.3.108",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -384,7 +384,17 @@ function Form(props) {
384
384
  }
385
385
 
386
386
  if (isEditorViewOnly || !isEditable) {
387
- const value = (record && record[name]) || (startingValues && startingValues[name]) || null;
387
+ let value = null;
388
+ if (record?.properties && record.properties[name]) {
389
+ value = record.properties[name].displayValue;
390
+ }
391
+ if (_.isNil(value) && record && record[name]) {
392
+ value = record[name];
393
+ }
394
+ if (_.isNil(value) && startingValues && startingValues[name]) {
395
+ value = startingValues[name];
396
+ }
397
+
388
398
  let element = <Element
389
399
  value={value}
390
400
  parent={self}
@@ -0,0 +1,3 @@
1
+ html, body {
2
+ user-select: none;
3
+ }