Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#5573 closed defect (fixed)

Button: Error on IE6 calling setLabel("") if showLabel=false

Reported by: guest Owned by: Douglas Hays
Priority: high Milestone: 1.1
Component: Dijit - Form Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

Try the following code on IE6:

var b;
b = new dijit.form.Button();
b.showLabel = false;
b.setLabel("");

you'll get:

[ Error: 'undefined' is null or not an object ]

Same problem this way:

<button dojoType="dijit.form.Button" showLabel="false"></button>

Attached patch fix the problem.

Attachments (1)

dijitButton.patch (899 bytes) - added by guest 12 years ago.
Proposed patch to fix problem

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by guest

Attachment: dijitButton.patch added

Proposed patch to fix problem

comment:1 Changed 12 years ago by bill

Description: modified (diff)
Milestone: 1.1
Owner: set to Douglas Hays
Priority: highnormal
Summary: Error on IE6 in dijit.form.Button calling setLabel("") if showLabel=falseButton: Error on IE6 calling setLabel("") if showLabel=false

comment:2 Changed 12 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [12015]) Fixes #5573. Added blank default for IE6 and moved _layoutHack to _formWidget so that Button could pick it up.

comment:3 Changed 12 years ago by Douglas Hays

(In [12423]) Fixes #5573 for 1.0.x/IE6 !strict.

comment:4 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.