Fixed some accessibility issues:

1) Added missing search filter label in backgrid.
  2) broken aria issue for objects menu.
This commit is contained in:
Vishal Sawale
2020-04-03 17:11:46 +05:30
committed by Akshay Joshi
parent 824e3866d8
commit 99a72e529b
2 changed files with 5 additions and 1 deletions

View File

@@ -1957,6 +1957,10 @@ define([
*/
Backgrid.Extension.ClientSideFilter = Backgrid.Extension.ClientSideFilter.extend({
$customSearchBox: null,
template: function (data) {
return '<span class="search">&nbsp;</span><input type="search" ' + (data.placeholder ? 'aria-label= "' + data.placeholder + '"' : '')+' '+ (data.placeholder ? 'placeholder="' +
data.placeholder + '"' : '') + ' name="' + data.name + '" ' + (data.value ? 'value="' + data.value + '"' : '') + '/><a class="clear" data-backgrid-action="clear" href="#">&times;</a>';
},
searchBox: function() {
if(this.$customSearchBox) {