Fixed accessibility label for date range input and min/max causing the date range to be selected on show

This commit is contained in:
2026-02-05 10:58:13 +00:00
parent 099b4def83
commit 0b1fe24b02
4 changed files with 12 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ $.extend(dateRangeInputBinding, {
},
_setMin: function(el, date) {
var $el = $(el);
var $mainInput = $el.find('.input-daterange').eq(0);
var $mainInput = $el.closest('.input-daterange').eq(0);
var autonext = false;
if ($mainInput.data('autonext') == true) {
@@ -42,7 +42,7 @@ $.extend(dateRangeInputBinding, {
},
_setMax: function(el, date) {
var $el = $(el);
var $mainInput = $el.find('.input-daterange').eq(0);
var $mainInput = $el.closest('.input-daterange').eq(0);
var autonext = false;
if ($mainInput.data('autonext') == true) {