mirror of https://github.com/twbs/bootstrap.git
				
				
				
			Merge pull request #14669 from vsn4ik/dropdown_event_target
Use e.target instead :focus selector.
This commit is contained in:
		
						commit
						fe51148434
					
				|  | @ -77,7 +77,7 @@ | ||||||
| 
 | 
 | ||||||
|     if (!$items.length) return |     if (!$items.length) return | ||||||
| 
 | 
 | ||||||
|     var index = $items.index($items.filter(':focus')) |     var index = $items.index(e.target) | ||||||
| 
 | 
 | ||||||
|     if (e.which == 38 && index > 0)                 index--                        // up
 |     if (e.which == 38 && index > 0)                 index--                        // up
 | ||||||
|     if (e.which == 40 && index < $items.length - 1) index++                        // down
 |     if (e.which == 40 && index < $items.length - 1) index++                        // down
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue