Commit b9455374 authored by Neslee's avatar Neslee
Browse files

Issue #3007478 by tostinni: Excluding textfield from autosubmit remove all attributes on the input

parent fe195ea5
......@@ -692,7 +692,7 @@ Title Desc|Z -> A</pre> Leave the replacement text blank to remove an option alt
if (!empty($settings['general']['autosubmit_exclude_textfield'])) {
foreach ($form as &$element) {
if (isset($element['#type']) && $element['#type'] == 'textfield') {
$element['#attributes'] = ['data-bef-auto-submit-exclude' => ''];
$element['#attributes']['data-bef-auto-submit-exclude'] = '';
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment