Skip to content

Commit

Permalink
Refactor invalid form logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jantoun-scottlogic committed Jun 24, 2024
1 parent 93fbf67 commit c9c5832
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@
<div class="tce-flex tce-gap-4 tce-flex-row-reverse">
<button
class="tce-button-calculate tce-px-3 tce-py-2"
[ngClass]="{ 'tce-opacity-50 tce-cursor-not-allowed': !estimatorForm.valid }"
[ngClass]="{ 'tce-opacity-50 tce-cursor-not-allowed': estimatorForm.invalid }"
type="submit"
[attr.aria-disabled]="!estimatorForm.valid"
[attr.aria-disabled]="estimatorForm.invalid"
aria-describedby="calculateDisabledMessage">
Calculate
</button>
Expand Down

0 comments on commit c9c5832

Please sign in to comment.