Skip to content

Commit

Permalink
Use ValidatableElement instead of HTMLElement
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Dahlby <[email protected]>
  • Loading branch information
haacked and dahlbyk committed Jan 5, 2024
1 parent d3593f3 commit 98b4a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1291,8 +1291,8 @@ export class ValidationService {
* @param input
* @returns
*/
private isDisabled(input: HTMLElement) {
return input.getAttribute('disabled') !== null;
private isDisabled(input: ValidatableElement) {
return input.disabled;
}

/**
Expand Down

0 comments on commit 98b4a3e

Please sign in to comment.