Patch #2 fixes the error for me.
- Drupal Core 10.2.5
- Masquerade 2.0@beta
- simplesamlphp_auth 4.0
Patch #9 solved my problem! Thanks, @carolpettirossi.
π | Webform | Warning: Undefined array key "#options" leads to TypeError: Drupal\Core\Form\OptGroup::flattenOptions():
π | Webform | Warning: Undefined array key "#options" leads to TypeError: Drupal\Core\Form\OptGroup::flattenOptions():
eric.vvf β created an issue.
eric.vvf β made their first commit to this issueβs fork.
I am facing the same. But I couldn't reproduce it locally, only in Pantheon's staging environment. as @bsingh reported, there are differences in responses between cases that work and cases that don't. Happens randomly, and doesn't seem to have a pattern.
With error:
"ajax":{
"auto_select_handler":{
"callback":"::updateFormCallback",
"wrapper":"media-library-wrapper",
"event":"auto_select_media_library_widget",
"url":"\/media-library?...",
"dialogType":"ajax",
"submit":{
"_triggering_element_name":"auto_select_handler"
}
}
}
Without error:
"ajax":{
"edit-submit--M799kaIDOac":{...}
...
"auto_select_handler":{...}
...
}
I tried a patch to add the missing libraries (in my case: file/drupal.file and dropzonejs/integration), but the problem still persists.