selectize-plugin-a11y
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "selectize-plugin-a11y", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Make Selectize.js accessibile", | ||
@@ -5,0 +5,0 @@ "main": "selectize-plugin-a11y.js", |
@@ -12,3 +12,9 @@ # selectize-plugin-a11y.js | ||
$('select').selectize({ | ||
plugins: ['selectize-plugin-a11y'] | ||
plugins: ['selectize-plugin-a11y'], | ||
render: { | ||
option: function($item, escape) { | ||
// Every option must have a unique id | ||
return `<div class="option" role="option" id="${$item.text.replace(' ', '')}">${$item.text}</div>` | ||
} | ||
} | ||
}); | ||
@@ -15,0 +21,0 @@ </script> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4805
23