Thanks.  Yes, but as Kangax goes on to say in the trac
ticket..."There's no native way to check if element has focus. It can
be done programatically - using focus/blur events (to keep track of
element's state), but that's quite problematic in this case."

On Mar 26, 5:11 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> As noted in that trac ticket, simply removing the call to blur is a
> somewhat poor solution to the problem. If you have other event
> observers that are listening for the blur event, this can have an
> undesirable effect.
> Making sure that the element you're about to disable currently has
> focus, before firing the blur event is the correct approach to take.
> -justin
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to