@elementor/editor-controls 4.4.0-1148 → 4.5.0-1150
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/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
- package/src/hooks/use-form-field-suggestions.ts +11 -12
package/dist/index.js
CHANGED
|
@@ -10523,14 +10523,10 @@ function getFieldCssId(child, widgetType) {
|
|
|
10523
10523
|
return extractStringPropValue(getSettingWithDefault(child, widgetType, CSS_ID_PROP_KEY));
|
|
10524
10524
|
}
|
|
10525
10525
|
function getFormContainer(elementId) {
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
}
|
|
10531
|
-
container = container.parent ?? null;
|
|
10532
|
-
}
|
|
10533
|
-
return null;
|
|
10526
|
+
return (0, import_editor_elements8.findClosestContainer)(
|
|
10527
|
+
(0, import_editor_elements8.getContainer)(elementId),
|
|
10528
|
+
(container) => container.model.get("elType") === FORM_ELEMENT_TYPE
|
|
10529
|
+
);
|
|
10534
10530
|
}
|
|
10535
10531
|
function useFormFieldSuggestions(options) {
|
|
10536
10532
|
return (0, import_editor_v1_adapters4.__privateUseListenTo)(
|