@elementor/editor-controls 4.4.0-1148 → 4.4.0-1149

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 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
- let container = (0, import_editor_elements8.getContainer)(elementId);
10527
- while (container) {
10528
- if (container.model.get("elType") === FORM_ELEMENT_TYPE) {
10529
- return container;
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)(