@onehat/ui 0.3.206 → 0.3.207

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.206",
3
+ "version": "0.3.207",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -125,6 +125,9 @@ function Form(props) {
125
125
  let skipAll = false;
126
126
  if (record?.isDestroyed) {
127
127
  skipAll = true; // if record is destroyed, skip render, but allow hooks to still be called
128
+ if (self?.parent?.parent?.setIsEditorShown) {
129
+ self.parent.parent.setIsEditorShown(false); // close the editor
130
+ }
128
131
  }
129
132
  const
130
133
  isMultiple = _.isArray(record),
@@ -477,6 +477,7 @@ export default function withEditor(WrappedComponent, isTree = false) {
477
477
  self.moveChildren = doMoveChildren;
478
478
  self.deleteChildren = doDeleteChildren;
479
479
  self.duplicate = doDuplicate;
480
+ self.setIsEditorShown = setIsEditorShown;
480
481
  }
481
482
  newEntityDisplayValueRef.current = newEntityDisplayValue;
482
483