Skip to content

Commit

Permalink
Cast datagrid-editable-value to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixafy authored and paveljanda committed Dec 26, 2022
1 parent cb48edf commit 932a097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ $(document).on('click', '[data-datagrid-editable-url]', function(event) {
cell.addClass('editing');
cellValue = cell.html().trim().replace('<br>', '\n');
if (cell.attr('data-datagrid-editable-value')) {
valueToEdit = cell.data('datagrid-editable-value');
valueToEdit = String(cell.data('datagrid-editable-value'));
} else {
valueToEdit = cellValue;
}
Expand Down

0 comments on commit 932a097

Please sign in to comment.