ibm-js / delite

HTML Custom Element / Widget infrastructure
http://ibm-js.github.io/delite/
Other
68 stars 28 forks source link

FormValueWidget: if valueNode and inputNode are distinct, the readOnly property of both should be kept in sync with widget's readOnly property #344

Closed AdrianVasiliu closed 9 years ago

AdrianVasiliu commented 9 years ago

FormValueWidget keeps in sync the readOnly property of its valueNode attach point with the readOnly property of the widget itself: https://github.com/ibm-js/delite/blob/0.5.1/FormValueWidget.js#L68. But this mechanism doesn't take into account the case of widgets with an inputNode distinct from the valueNode (for instance, valueNode being a hidden input element, while inputNode being a non-hidden input).

AdrianVasiliu commented 9 years ago

Submitted #345 as candidate fix for this issue.