@onehat/ui 0.3.93 → 0.3.95
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
|
@@ -164,6 +164,11 @@ function TagComponent(props) {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
+
if (isEditor && propsToPass.selectorId) {
|
|
168
|
+
_combo.selectorId = propsToPass.selectorId;
|
|
169
|
+
_combo.selectorSelected = propsToPass.selectorSelected;
|
|
170
|
+
}
|
|
171
|
+
|
|
167
172
|
return <>
|
|
168
173
|
<Column
|
|
169
174
|
{...props}
|
|
@@ -453,9 +453,11 @@ function Form(props) {
|
|
|
453
453
|
throw new Error('Should not yet be valid React element. Did you use <Element> instead of () => <Element> when defining it?')
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
-
if (useSelectorId) {
|
|
456
|
+
if (useSelectorId) { // This causes the whole form to use selectorId
|
|
457
457
|
editorTypeProps.selectorId = selectorId;
|
|
458
|
-
|
|
458
|
+
}
|
|
459
|
+
if (propsToPass.selectorId || editorTypeProps.selectorId) { // editorTypeProps.selectorId causes just this one field to use selectorId
|
|
460
|
+
editorTypeProps.selectorSelected = record;
|
|
459
461
|
}
|
|
460
462
|
let element = <Element
|
|
461
463
|
name={name}
|
|
@@ -230,7 +230,7 @@ export default function withDraggable(WrappedComponent) {
|
|
|
230
230
|
// bounds={bounds}
|
|
231
231
|
{...draggableProps}
|
|
232
232
|
>
|
|
233
|
-
<div className="nsResize"
|
|
233
|
+
<div className="nsResize">
|
|
234
234
|
<WrappedComponent {...propsToPass} />
|
|
235
235
|
</div>
|
|
236
236
|
</Draggable>;
|