Problem/Motivation

The webform_bootstrap module fixes minor issue with webform elements using hook_webform_element_ELEMENT_TYPE_alter(). This hook is not being applied to composite subelements.

Proposed resolution

Add invoked alter to all composite sub-elements.

Remaining tasks

  • Create test form
  • Add alter hook
  • Fix broken tests

Screenshot


Comments

jrockowitz created an issue. See original summary.

  • jrockowitz committed 3f3885f on 2953420-subelement-alter
    Issue #2953420: Composite sub-elements are not alterable via...
jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new9.86 KB
jrockowitz’s picture

StatusFileSize
new282.83 KB

Here is the buttons element correctly displayed w/o the Panel wrapper in the Bootstrap theme after the patch has been applied.

  • jrockowitz committed e0d756e on 2953420-subelement-alter
    Issue #2953420: Composite sub-elements are not alterable via...

  • jrockowitz committed 974fb21 on 2953420-subelement-alter
    Issue #2953420: Composite sub-elements are not alterable via...
jrockowitz’s picture

StatusFileSize
new16.58 KB
jrockowitz’s picture

Status: Needs review » Reviewed & tested by the community

  • jrockowitz committed ebf9bea on 8.x-5.x
    Issue #2953420 by jrockowitz: Composite sub-elements are not alterable...
jrockowitz’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.