Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(datetimepicker): invalid value passed to formatTime [MA-2131] #1881

Merged
merged 17 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions docs/components/datetime-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,6 @@ currentValue = {
},
```

![Warning - Breaking Change](https://img.shields.io/badge/Warning-Breaking_Change-de881f)

Previously, a Date ISO string was accepted as the seed value. That value now has to be nested one level deeper, inside the `start` object key.
___

#### Range date time picker `v-model`

An instance that displays a date range or a series of relative time frames.
Expand Down Expand Up @@ -448,11 +443,6 @@ When "Clear" is clicked, it will emit null values for both `start` and `end`.
},
```

![Warning - Breaking Change](https://img.shields.io/badge/Warning-Breaking_Change-de881f)

Previously, a Date ISO string was emitted.
___

### Range date time picker

**Events**: `change`, `update:modelValue`
Expand Down
15 changes: 15 additions & 0 deletions docs/guide/migrating-to-version-9.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,21 @@ Kongponents styles are no longer designed to be utilized standalone, separately

### KDateTimePicker

#### Props

* `v-model` Single date and time picker's seed value (string in ISO date format) has been deprecated in favor of a `TimeRange` object whose `start` value will be set to a Date ISO string; `end` value will be set to `null`.
mihai-peteu marked this conversation as resolved.
Show resolved Hide resolved

See KDateTimePickers's [v-model](/components/datetime-picker#v-model) for more details

#### Events

* `change`, `update:modelValue` – a Single date and time picker will no longer emit an ISO date format string. Instead, a `TimeRange` object with a Date ISO string `start` value, and a null `end` value will be emitted.

See KDateTimePickers's [Single date time picker events](/components/datetime-picker#single-date-time-picker) for more details

#### Constants, Types & Interfaces

* `TimeRange` - `start` and `end` keys are now defined as `Date | null`
mihai-peteu marked this conversation as resolved.
Show resolved Hide resolved

### KDropdownMenu

Expand Down