Skip to content

Commit

Permalink
fix: rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideMininni-Fincons committed Dec 12, 2023
1 parent 16d1912 commit a341d4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/datepicker/datepicker/datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class SbbDatepickerElement extends LitElement {

protected override firstUpdated(_changedProperties: PropertyValues): void {
super.firstUpdated(_changedProperties);
this._setAriaLiveMessage(this.getValueAsDate());
this._setAriaLiveMessage(this.valueAsDate);
}

private _parseAndFormatValue(value: string): string {
Expand Down
2 changes: 1 addition & 1 deletion src/components/datepicker/datepicker/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Consumers can listen to the native `change` and `input` events on the `sbb-datep
The `valueAsDate` property on the `sbb-datepicker` can be used to read the current value
(e.g. from `event.target.valueAsDate`) or to set the value programmatically.

Each time the user changes the date by using the calendar, or the next and previous day arrow, or by using the `setValueAsDate()` method,
Each time the user changes the date by using the calendar, or the next and previous day arrow, or by using the `valueAsDate` setter,
a `blur` event is fired on the input to ensure compatibility with any framework that relies on that event to update the current state.

## Custom date formats
Expand Down
2 changes: 1 addition & 1 deletion src/components/time-input/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If the `sbb-time-input` is used within a `sbb-form-field` with a native input, t
</sbb-form-field>
```

The initial value can be set using the `value` property (string) of the `input`or the `setValueAsDate()` method of the `sbb-time-input`.
The initial value can be set using the `value` property (string) of the `input`or the `valueAsDate` setter of the `sbb-time-input`.

When the input changes, if it is valid, the component updates the `value` of the `input`.

Expand Down

0 comments on commit a341d4b

Please sign in to comment.