angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.29k stars 6.73k forks source link

Requires two clicks to focus on input after using uib-dropdown #6410

Open mcm-ham opened 7 years ago

mcm-ham commented 7 years ago

When dropdown has focus it requires two clicks to focus on a different input.

Reproduction steps:

  1. Open https://plnkr.co/edit/sxREBmeGwoFBQ4ZnOLIV?p=preview
  2. Click on "dropdown 1"
  3. Click on "common input"

Expectation: "common input" has focus and you can start typing into that textbox.

Actual: The dropdown still has focus.

Angular: 1.5.8 UIBS: 2.2.0 & 2.4.0 Bootstrap: 3.3.7 Windows 10 Chrome 55

Also reported by other users here: https://github.com/angular-ui/bootstrap/issues/6364#issuecomment-271913855

wesleycho commented 7 years ago

Can you give more details as to how to reproduce it (steps of reproduction) and other info such as what browser/OS? I'm not seeing this in the Plunker, but I suspect it's because I don't understand the exact steps.

wesleycho commented 7 years ago

While I might not quite understand this, it sounds like #6414 might possibly be a fix for this.

mcm-ham commented 7 years ago

Thanks @wesleycho for looking into this. I've now updated post numbering the reproduction steps and added expected and actual behaviour so hope that's clearer. No #6414 did not fix the issue. Undoing this commit fixes the issue for me https://github.com/yanhao1991/bootstrap/commit/cce00970f1efdcc7c7e741afca12a722024d9e16

JoshuaJWilborn commented 7 years ago

see https://github.com/angular-ui/bootstrap/issues/6459