зеркало из https://github.com/mozilla/gecko-dev.git
Bug 323292, readonly bind not working for textarea, r=doronr+aaronr
This commit is contained in:
Родитель
143f08953f
Коммит
66cdc786d5
|
@ -1113,7 +1113,11 @@
|
|||
|
||||
<method name="refresh">
|
||||
<body>
|
||||
this.controlField.readonly = this.accessors.isReadonly();
|
||||
if (this.accessors.isReadonly()) {
|
||||
this.controlField.setAttribute("readonly", "readonly");
|
||||
} else {
|
||||
this.controlField.removeAttribute("readonly");
|
||||
}
|
||||
// If the value has not changed, no need to update the
|
||||
// value of the control, because that makes the textarea widget
|
||||
// to scroll up.
|
||||
|
|
Загрузка…
Ссылка в новой задаче