Merge #17852 - Fix #17777 - Uncaught TypeError: Cannot read properties of null (reading 'inline')

Pull-request: #17852
Fixes: #17777

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2022-11-03 21:33:26 +01:00
commit 9b700c6307
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -757,7 +757,8 @@ var makeGrid = function (t, enableResize, enableReorder, enableVisib, enableGrid
if ($dp.length > 0) {
// eslint-disable-next-line no-underscore-dangle
$(document).on('mousedown', $.datepicker._checkExternalClick);
$dp.datepicker('destroy');
$dp.datepicker('refresh');
// change the cursor in edit box back to normal
// (the cursor become a hand pointer when we add datepicker)
$(g.cEdit).find('.edit_box').css('cursor', 'inherit');