Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
better_exposed_filters
Commits
b9455374
Commit
b9455374
authored
Sep 15, 2020
by
Neslee
Browse files
Issue #3007478 by tostinni: Excluding textfield from autosubmit remove all attributes on the input
parent
fe195ea5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Plugin/views/exposed_form/BetterExposedFilters.php
src/Plugin/views/exposed_form/BetterExposedFilters.php
+1
-1
No files found.
src/Plugin/views/exposed_form/BetterExposedFilters.php
View file @
b9455374
...
...
@@ -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'
]
=
''
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment