I think makes sense when a user checks or selects 'Other' to focus the text field.

In select_or_other.js, I changed...

$(ele).find(".select-or-other-other").parent("div.form-item").show(speed);

to

$(ele).find(".select-or-other-other").parent("div.form-item").show(speed, function() {
  $(this).find(".select-or-other-other").focus();
});

BTW, I am using a callback function to prevent "Attempting to set focus to a hidden element causes an error in Internet Explorer..." (http://api.jquery.com/focus/)

Comments

danielb’s picture

nice I'll look into it soon

danielb’s picture

Status: Active » Fixed

committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit a19d91f on 7.x-2.x, 7.x-3.x, 8.x-3.x authored by jrockowitz, committed by danielb:
    Issue #1652762 by jrockowitz: Focus textfield when user chooses 'other...