From 5b7dd0061dc81f161b6dd6db6b545e8898482622 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Fri, 19 Jun 2020 16:04:49 +0530 Subject: [PATCH] dev/core#1829 - Custom Date field with format=yy displays calendar icon that doesn't work --- js/crm.datepicker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/crm.datepicker.js b/js/crm.datepicker.js index 95663c0949..3a8eebbc9b 100644 --- a/js/crm.datepicker.js +++ b/js/crm.datepicker.js @@ -75,6 +75,7 @@ } else { $dateField.attr('min', settings.minDate ? CRM.utils.formatDate(settings.minDate, 'yy') : '1000'); $dateField.attr('max', settings.maxDate ? CRM.utils.formatDate(settings.maxDate, 'yy') : '4000'); + placeholder = null; } // Set placeholder as calendar icon (`fa-calendar` is Unicode f073) $dateField.attr({placeholder: placeholder === undefined ? '\uF073' : placeholder}).change(updateDataField); -- 2.25.1