Krinkle has uploaded a new change for review.
https://gerrit.wikimedia.org/r/129886
Change subject: InputWidget: DOM property is 'readOnly', not 'readonly'
......................................................................
InputWidget: DOM property is 'readOnly', not 'readonly'
This works because of jQuery propFix (which maps a set of common
mistakes, but should not be relied on). The HTML attribute (only
used to set the elements initial state) is "readonly", but the
live node property is "readOnly".
Change-Id: If0ef07f0729b90ae3cfb156e3a526d10708b8c75
---
M src/widgets/InputWidget.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/86/129886/1
diff --git a/src/widgets/InputWidget.js b/src/widgets/InputWidget.js
index f700029..6106e5b 100644
--- a/src/widgets/InputWidget.js
+++ b/src/widgets/InputWidget.js
@@ -169,7 +169,7 @@
*/
OO.ui.InputWidget.prototype.setReadOnly = function ( state ) {
this.readOnly = !!state;
- this.$input.prop( 'readonly', this.readOnly );
+ this.$input.prop( 'readOnly', this.readOnly );
return this;
};
--
To view, visit https://gerrit.wikimedia.org/r/129886
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If0ef07f0729b90ae3cfb156e3a526d10708b8c75
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits