Skip to content

Commit 3b37499

Browse files
authored
fix(DateField): enable min/max validation within form (#2285)
1 parent 05ef43b commit 3b37499

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/DateField/DateFieldRoot.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,15 @@ defineExpose({
303303
<VisuallyHidden
304304
:id="id"
305305
as="input"
306+
type="date"
306307
feature="focusable"
307308
tabindex="-1"
308309
:value="modelValue ? modelValue.toString() : ''"
309310
:name="name"
310311
:disabled="disabled"
311312
:required="required"
313+
:max="maxValue"
314+
:min="minValue"
312315
@focus="Array.from(segmentElements)?.[0]?.focus()"
313316
/>
314317
</Primitive>

0 commit comments

Comments
 (0)