GUACAMOLE-742: Use "data-disabled" instead of "disabled" for directive attributes.

Internet Explorer 11 interprets the "disabled" attribute on all HTML
elements, even unknown elements like AngularJS directives, disabling any
input fields that end up on the DOM tree within those elements. This
breaks the login form.

The alternative "data-disabled" attribute form supported by AngularJS
allows things to work without interference.
This commit is contained in:
Michael Jumper
2019-05-16 14:21:45 -07:00
parent 1623f55191
commit 1a57088bfb
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
<div class="fields"> <div class="fields">
<guac-form-field ng-repeat="field in form.fields" namespace="namespace" <guac-form-field ng-repeat="field in form.fields" namespace="namespace"
ng-if="isVisible(field)" ng-if="isVisible(field)"
disabled="disabled" data-disabled="disabled"
field="field" model="values[field.name]"></guac-form-field> field="field" model="values[field.name]"></guac-form-field>
</div> </div>

View File

@@ -27,7 +27,7 @@
namespace="'LOGIN'" namespace="'LOGIN'"
content="remainingFields" content="remainingFields"
model="enteredValues" model="enteredValues"
disabled="submitted"></guac-form> data-disabled="submitted"></guac-form>
</div> </div>
<!-- Login/continue button --> <!-- Login/continue button -->