Opened 10 years ago
Closed 10 years ago
#12154 closed defect (fixed)
InlineEditBox: missing "disabled" attribute in the attribute list
Reported by: | goriol | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.6 |
Component: | Dijit | Version: | 1.5 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
The InlineEditBox? dijit implements a "disabled" property that prevents from editing its value when it is set.
If I create the dijit programmatically, everything is fine:
dojo.addOnLoad(function() { var d = new dijit.InlineEditBox({"disabled":true}, "test1"); });
But when I use the markup method, the dijit is not disabled:
<span id="test2" dojoType="dijit.InlineEditBox" disabled="true">ABCD</span>
Bill Keese confirmed this attribute was missing from the attribute list of the widget and gave this workaround: You can add
dijit.InlineEditBox.prototype.disabled = false;
after the dojo.require("dijit.InlineEditBox");
You can alternately just use the new parser syntax:
data-dojo-props="disabled: true"
.
Change History (2)
comment:1 Changed 10 years ago by
Milestone: | tbd → 1.6 |
---|---|
Owner: | set to bill |
Status: | new → assigned |
Summary: | missing "disabled" attribute in the attribute list for InlineEditBox → InlineEditBox: missing "disabled" attribute in the attribute list |
comment:2 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Thanks, I'll fix.