[ 12 posts ] Go to page Previous1, 2

MJ87

  • Username: mj87
  • Joined: Tue Sep 20, 2011 9:43 am
  • Posts: 2
  • Offline
  • Profile
Tags:

Re: How do you set focus to a particular input box?

Post Posted: Tue Sep 20, 2011 9:54 am
+0-
jamesmoorecode wrote:
The hack I'm using right now is to wrap the focus() call in a setTimeout, so it executes after the dialog is shown. Works, but feels really ugly.



Sorry to reply after such a long time, however, did you have any joy resolving this?

Steven Chapman

  • Username: LicoriceTattoo
  • Joined: Wed Apr 06, 2011 5:02 am
  • Posts: 15
  • Offline
  • Profile
Tags:

Re: How do you set focus to a particular input box?

Post Posted: Thu Feb 09, 2012 11:03 am
+0-
I'm hitting this same problem. The buttons steal my focus!

I'm using isDefault: false on both buttons but the OK button still steals my focus.

I guess I'll use the nasty setTimeout hack to get around it. Has anyone fixed this in a better way?
  [ 12 posts ] Go to page Previous1, 2
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum