Skip to content

Commit

Permalink
🐛 [#3921] Expose all components instead of just within the same parent
Browse files Browse the repository at this point in the history
For nested components in a layout component, we need to be able to
select components that are outside of this container too, so instead
of only considering the parent (which is the root for non-nested
fields), look at the root container holding all the form components.

Backport-of: #3949
  • Loading branch information
sergei-maertens committed Feb 28, 2024
1 parent 34d71d1 commit 794016f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ class WebformBuilder extends WebformBuilderFormio {
uniquifyKey={uniquifyKey}
supportedLanguageCodes={LANGUAGES}
richTextColors={RICH_TEXT_COLORS}
getFormComponents={() => parent.formioContainer}
getFormComponents={() => this.webform.components}
getValidatorPlugins={getValidatorPlugins}
getRegistrationAttributes={getRegistrationAttributes}
getPrefillPlugins={getPrefillPlugins}
Expand Down

0 comments on commit 794016f

Please sign in to comment.