Skip to content

Commit

Permalink
fix: fixed all build bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yoezlem committed Oct 9, 2023
1 parent e3fdfc8 commit 38485b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/internal/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class FormControlController implements ReactiveController {
}

if (this.host.hasUpdated) {
this.setValidity(this.host.validity.valid);
this.setValidity(this.host?.validity!.valid);
}
}

Expand Down Expand Up @@ -347,7 +347,7 @@ export class FormControlController implements ReactiveController {
*/
updateValidity() {
const host = this.host;
this.setValidity(host.validity.valid);
this.setValidity(host?.validity!.valid);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/internal/solid-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export interface SolidFormControl extends SolidElement {
maxlength?: number;

// Form validation properties
readonly validity: ValidityState;
readonly validationMessage: string;
readonly validity?: ValidityState;
readonly validationMessage?: string;

// Validation methods
checkValidity: () => boolean;
Expand Down

0 comments on commit 38485b9

Please sign in to comment.