Opened 9 years ago

Closed 9 years ago

#11534 closed defect (invalid)

focus() back to original button that opened dialog blocks custom .focus

Reported by: koen3950 Owned by: dante
Priority: high Milestone: tbd
Component: DojoX Widgets Version: 1.5
Keywords: dialog focus Cc:
Blocked By: Blocking:

Description

When a dojodialog is closed, it places focus back to the original button that opened the dialog. This blocks us from setting the focus to another field on the screen. The focus should not be set to this original button or the user should have the choice via a parameter for the dojodialog.

I attached an example project Interchange. Mind you I'm using IBM's EGL so I am using the dojowidgets adapted for EGL.

Attachments (1)

dojoDialogFocusError.zip (104.2 KB) - added by koen3950 9 years ago.
EGL project interchange (open in IBM RBD)

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by koen3950

Attachment: dojoDialogFocusError.zip added

EGL project interchange (open in IBM RBD)

comment:1 Changed 9 years ago by bill

Resolution: invalid
Status: newclosed

Please make small test cases, on the order of 100 bytes, not 100K. There's no such thing as "dojodialog" in dojo.... there's a dijit.Dialog and a dojox.widget.Dialog. dijit.Dialog has a refocus parameter that you can set to false to get the behavior you want.

I searched through your code and it looks like you are referring to "egl.dojo.widgets.DojoDialog?", which isn't part of dojo at all.

Note: See TracTickets for help on using tickets.