8000 Found workaround for Microsoft/TypeScript/issues/21517 until it is fixed · Sebazzz/financial-app@d7f81a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit d7f81a6

Browse files
committed
Found workaround for microsoft/TypeScript/issues/21517 until it is fixed
1 parent 2c589d0 commit d7f81a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/App/js/AppFramework/Forms/ValidationMessage.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ ko.bindingHandlers.validationProperty = {
7171
element.setAttribute('required', 'required');
7272
}
7373
} else {
74+
const workaround = element as HTMLInputElement;
7475
if (validationState) {
75-
element.classList.add('is-invalid');
76+
workaround.classList.add('is-invalid');
7677
} else {
77-
element.classList.remove('is-invalid');
78+
workaround.classList.remove('is-invalid');
7879
}
7980
}
8081
}

0 commit comments

Comments
 (0)
0