- Issue created by @AndyF
- Merge request !530Issue #3482205: Element description overridden by Bootstrap when using defaults → (Open) created by AndyF
I think this is very similar to but different from
🐛
Element description position overridden by Bootstrap
Fixed
. The description for a text area didn't show up as expected after the text area. (Particularly fun was that it worked locally but not on staging, which I think is due to the increased length of the field with HTML comments preventing tooltips being used!) If I explicitly set either the specific element or the global (admin/structure/webform/config/elements#edit-element-default-description-display
) description display to it works; but I can't have it set to .
bootstrap
theme and webform_bootstrap
.
/admin/appearance/settings/bootstrap
to use smart form descriptions via tooltips.
admin/structure/webform/config/elements#edit-element-default-description-display
and ensure the element display is set to
Given that the FAPI defaults to after
can we just update the condition to something like this?
<?php
if ($smart_description_enabled
&& isset($element['#description'])
&& empty($element['#smart_description'])
&& (!isset($element['#description_display']) || $element['#description_display'] === 'after' || $element['#description_display'] === 'before')) {
$element['#smart_description'] = FALSE;
}
Active
6.3
Code