From a122af95705d02af0b1f7a9fce8a6ee71a529356 Mon Sep 17 00:00:00 2001 From: Pixelastic Date: Fri, 25 Sep 2015 11:04:51 +0200 Subject: [PATCH] fix(searchBox): Use `hasAttribute` instead of `getAttribute` --- widgets/search-box.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/search-box.js b/widgets/search-box.js index 626bf9b4a4..59e5969205 100644 --- a/widgets/search-box.js +++ b/widgets/search-box.js @@ -33,7 +33,7 @@ function searchbox(params) { // Overrides attributes if not already set forEach(defaultAttributes, (value, key) => { - if (input.getAttribute(key)) { + if (input.hasAttribute(key)) { return; } input.setAttribute(key, value);