Skip to content

Commit

Permalink
fix: Disordered Week Names in Coral Datepicker Component (#333)
Browse files Browse the repository at this point in the history
Co-authored-by: Himanshu Parwani <hparwani@Himanshus-MacBook-Pro.local>
  • Loading branch information
hparwani2 and Himanshu Parwani committed Mar 12, 2024
1 parent 474ab1b commit e30dd24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coral-component-calendar/src/scripts/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ const Calendar = Decorator(class extends BaseFormField(BaseComponent(HTMLElement
}

set startDay(value) {
value = transform.number(value);
if (value >= 0 && value < 7) {
this._startDay = value;

Expand Down

0 comments on commit e30dd24

Please sign in to comment.