Bug 323292, readonly bind not working for textarea, r=doronr+aaronr

This commit is contained in:
Olli.Pettay%helsinki.fi 2006-01-13 17:38:33 +00:00
Родитель 143f08953f
Коммит 66cdc786d5
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -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.