Skip to content

Commit

Permalink
Found workaround for microsoft/TypeScript/issues/21517 until it is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebazzz committed Feb 1, 2018
1 parent 2c589d0 commit d7f81a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/App/js/AppFramework/Forms/ValidationMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ ko.bindingHandlers.validationProperty = {
element.setAttribute('required', 'required');
}
} else {
const workaround = element as HTMLInputElement;
if (validationState) {
element.classList.add('is-invalid');
workaround.classList.add('is-invalid');
} else {
element.classList.remove('is-invalid');
workaround.classList.remove('is-invalid');
}
}
}
Expand Down

0 comments on commit d7f81a6

Please sign in to comment.