Skip to content

Commit a122af9

Browse files
committed
fix(searchBox): Use hasAttribute instead of getAttribute
1 parent e820cc3 commit a122af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

widgets/search-box.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function searchbox(params) {
3333

3434
// Overrides attributes if not already set
3535
forEach(defaultAttributes, (value, key) => {
36-
if (input.getAttribute(key)) {
36+
if (input.hasAttribute(key)) {
3737
return;
3838
}
3939
input.setAttribute(key, value);

0 commit comments

Comments
 (0)