From 176a228639144364dad640ea8e5a164e4324c811 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 31 Mar 2017 10:59:49 +0100 Subject: [PATCH] Add hidden attribute to the input field The input doesn't have a type and no associated label. This causes accessibility errors. Added the type 'hidden' as the field is hidden. --- src/jquery.selectric.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.selectric.js b/src/jquery.selectric.js index e500fda..0e83cac 100644 --- a/src/jquery.selectric.js +++ b/src/jquery.selectric.js @@ -227,7 +227,7 @@ _this.classes = _this.getClassNames(); // Create elements - var input = $('', { 'class': _this.classes.input, 'readonly': _this.utils.isMobile() }); + var input = $('', { 'class': _this.classes.input, 'type: 'hidden', 'readonly': _this.utils.isMobile() }); var items = $('
', { 'class': _this.classes.items, 'tabindex': -1 }); var itemsScroll = $('
', { 'class': _this.classes.scroll }); var wrapper = $('
', { 'class': _this.classes.prefix, 'html': _this.options.arrowButtonMarkup });