Opened 9 years ago

Closed 9 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: goriol@…
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 9 years ago by bill

Milestone: tbd1.6
Owner: set to bill
Status: newassigned
Summary: missing "disabled" attribute in the attribute list for InlineEditBoxInlineEditBox: missing "disabled" attribute in the attribute list

Thanks, I'll fix.

comment:2 Changed 9 years ago by bill

Resolution: fixed
Status: assignedclosed

(In [23535]) Add in disabled attribute to attribute list, so that disabled="true" (in the old parser syntax) can be used to initially disable a declarative InlineEditBox widget. Fixes #12154 !strict.

Note: See TracTickets for help on using tickets.