Fix readonly toggle bug

When adding the "readonly" attribute to an input field (after 'init' or 'update' were called), the field is still editable.

(For example, if the input field isn't readonly, we call 'init' or 'update', and then with jQuery we set the readonly attribute, the field will be editable)