Skip to content

Commit

Permalink
feat(datepicker): fix clear dates event bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dilandoogan committed Jan 7, 2025
1 parent cda4b34 commit e3e9b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/datepicker/bl-datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ export default class BlDatepicker extends DatepickerCalendarMixin {
}

clearDatepicker() {
this._calendarEl.handleClearSelectedDates();
this._selectedDates = [];
this._inputValue = "";
this._floatingDateCount = 0;
this._calendarEl.handleClearSelectedDates();
}

openPopover() {
Expand Down Expand Up @@ -242,7 +242,7 @@ export default class BlDatepicker extends DatepickerCalendarMixin {
variant="tertiary"
kind="neutral"
icon="close"
@click=${() => this.clearDatepicker()}
@click=${this.clearDatepicker}
></bl-button>
<div class="action-divider"></div>`
: "";
Expand Down

0 comments on commit e3e9b2a

Please sign in to comment.