Skip to content

Commit f1f893b

Browse files
committed
refactor(datepicker): update invalid state immediately upon invalid detected
1 parent ab4e449 commit f1f893b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Datepicker/sgds-datepicker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export class SgdsDatepicker extends SgdsFormValidatorMixin(DropdownElement) impl
320320
private async _handleInvalidInput() {
321321
this.selectedDateRange = [];
322322
this.displayDate = this.initialDisplayDate;
323-
323+
this.invalid = true
324324
this._manageInternalsBadInput();
325325
}
326326
private async _handleEmptyInput() {

0 commit comments

Comments
 (0)