Rafael Salas → created an issue.
if (!empty($element['#attributes']['type']) && $element['#attributes']['type'] == 'date' && !empty($element['#date_date_format'])) {
This works
Rafael Salas → created an issue.
if (!empty($element['#attributes']['type']) && $element['#attributes']['type'] == 'date' && !empty($element['#date_date_format'])) {
This works