In Angular2 app the submit button is enabled only if several conditions are met. I use [disabled]="disabled(j)"
for that.
html:
<button type="submit" class="submit" [disabled]="disabled(j)">Submit</button>
component:
disabled(j) {
if (this.form.valid && j === this.userId) {
return false;
} else {
return true;
}
}
It works perfectly in Chrome, but doesn't work in IE. Inspecting DOM element has shown, that instead of [disabled]="disabled(j)"
it has [disabled]=""
How to fix that?