fix: 防止临时报价截止日期手输时被清空 (#1236)
This commit is contained in:
parent
1cf6f020c5
commit
f2181e586c
@ -55,7 +55,8 @@
|
||||
periods.forEach(period => {
|
||||
const first = period.querySelector('[data-row-date]');
|
||||
const end = period.querySelector('[data-row-end]');
|
||||
end.min = first.value;
|
||||
// Reassigning min while typing resets the native date input's pending digits.
|
||||
if (end.min !== first.value) end.min = first.value;
|
||||
end.setCustomValidity(isTemporary && first.value && end.value && end.value < first.value ? '截止日期不能早于开始日期。' : '');
|
||||
first.setCustomValidity('');
|
||||
if (isTemporary && first.value && end.value) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user