Skip to content

Commit

Permalink
refactor(datepicker): update invalid state immediately upon invalid d…
Browse files Browse the repository at this point in the history
…etected
  • Loading branch information
clukhei committed Jan 3, 2025
1 parent ab4e449 commit f1f893b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Datepicker/sgds-datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class SgdsDatepicker extends SgdsFormValidatorMixin(DropdownElement) impl
private async _handleInvalidInput() {
this.selectedDateRange = [];
this.displayDate = this.initialDisplayDate;

this.invalid = true
this._manageInternalsBadInput();
}
private async _handleEmptyInput() {
Expand Down

0 comments on commit f1f893b

Please sign in to comment.