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
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2953420-8.patch | 16.58 KB | jrockowitz |
| #5 | Screen Shot 2018-03-15 at 4.55.08 PM.png | 282.83 KB | jrockowitz |
| #4 | 2953420-5.patch | 9.86 KB | jrockowitz |
| #2 | Issue 2953420 Composite sub elements are not alterable via hook_webform_element_ELEMENT_TYPE_alter Webform Demo Site.png | 257.53 KB | jrockowitz |
| #2 | webform.webform.issue_2953420.yml | 3.35 KB | jrockowitz |

Comments
Comment #2
jrockowitz commentedComment #4
jrockowitz commentedComment #5
jrockowitz commentedHere is the buttons element correctly displayed w/o the Panel wrapper in the Bootstrap theme after the patch has been applied.
Comment #8
jrockowitz commentedComment #9
jrockowitz commentedComment #11
jrockowitz commented