@onehat/ui 0.3.371 → 0.3.372

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.371",
3
+ "version": "0.3.372",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -85,7 +85,7 @@ export default function withPermissions(WrappedComponent, forceUsePermissions =
85
85
  return forwardRef((props, ref) => {
86
86
 
87
87
  if (!props.usePermissions && !forceUsePermissions) {
88
- return <WrappedComponent {...props} />;
88
+ return <WrappedComponent {...props} ref={ref} />;
89
89
  }
90
90
 
91
91
  const {
@@ -115,6 +115,7 @@ export default function withPermissions(WrappedComponent, forceUsePermissions =
115
115
  {...props}
116
116
  canUser={canUserDecorator}
117
117
  showPermissionsError={showPermissionsError}
118
+ ref={ref}
118
119
  />;
119
120
  });
120
121
  }