File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,18 @@ public function render(\Magento\Framework\DataObject $row)
108
108
*/
109
109
protected function _getCheckboxHtml ($ value , $ checked )
110
110
{
111
- $ html = '<input type="checkbox" ' ;
111
+ $ html = '<label class="data-grid-checkbox-cell-inner" ' ;
112
+ $ html .= ' for="id_ ' . $ this ->escapeHtml ($ value ) . '"> ' ;
113
+ $ html .= '<input type="checkbox" ' ;
112
114
$ html .= 'name=" ' . $ this ->getColumn ()->getFieldName () . '" ' ;
113
115
$ html .= 'value=" ' . $ this ->escapeHtml ($ value ) . '" ' ;
116
+ $ html .= 'id="id_ ' . $ this ->escapeHtml ($ value ) . '" ' ;
114
117
$ html .= 'class=" ' .
115
118
($ this ->getColumn ()->getInlineCss () ? $ this ->getColumn ()->getInlineCss () : 'checkbox ' ) .
116
- ' admin__control-checkbox ' .
117
- '" ' ;
119
+ ' admin__control-checkbox ' . '" ' ;
118
120
$ html .= $ checked . $ this ->getDisabled () . '/> ' ;
119
- $ html .= '<label></label> ' ;
121
+ $ html .= '<label for="id_ ' . $ this ->escapeHtml ($ value ) . '"></label> ' ;
122
+ $ html .= '</label> ' ;
120
123
/* ToDo UI: add class="admin__field-label" after some refactoring _fields.less */
121
124
return $ html ;
122
125
}
You can’t perform that action at this time.
0 commit comments