Skip to content

Commit 12f96a2

Browse files
committed
Accept empty value for search fields
1 parent 8f5ec9a commit 12f96a2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

web/assets/js/widgets/search-form/search-form.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ window.CultuurnetWidgets = window.CultuurnetWidgets || { behaviors: {} };
127127

128128
// Text field => Just submit the entered value.
129129
if ($field.is(':text')) {
130-
if (value) {
131-
paramsToSubmit[$field.attr('name')] = encodeURIComponent(value);
132-
}
130+
paramsToSubmit[$field.attr('name')] = encodeURIComponent(value);
133131
}
134132
// Radios => Only submit the checked radios.
135133
else if ($field.is(':radio')) {

0 commit comments

Comments
 (0)