unovue / radix-vue

Vue port of Radix UI Primitives. An open-source UI component library for building high-quality, accessible design systems and web apps.
https://radix-vue.com
MIT License
3.71k stars 231 forks source link

[Bug]: Setting date picker's model value to `undefined` doesn't reset field's segments #1426

Closed DamianGlowala closed 1 week ago

DamianGlowala commented 1 week ago

Environment

Radix Vue version: 1.9.9

Link to minimal reproduction

``` ```

Steps to reproduce

  1. Enter a date into the date picker field.
  2. Change the binded model value to undefined.
  3. Observe how date picker field's segments remain unchanged.

Describe the bug

https://github.com/user-attachments/assets/3129cb8a-3b18-4990-8b17-3ebbc13da167

Expected behavior

Date picker field's segments are reset when model value changes to undefined.

Context & Screenshots (if applicable)

No response