dhamaso / ufd

Automatically exported from code.google.com/p/ufd
GNU General Public License v2.0
0 stars 0 forks source link

Drop down appearing over the top of accordions. #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have your drop down in an accordion area
2. Open drop down
3. Click next accordion (which has a preventDefault() on it.)

What is the expected output? What do you see instead?
The parent accordion moves up, but the drop down still appears on top of it in 
its place even though it's parent is now part of a hidden element, due to its 
pos:absolute.

Please provide any additional information below.
I have written my own add on tot he accordion to $(body).click() that initiates 
the natural off click, and that's fine... but I did think it might be useful to 
have a close method on the plugin, that could be called.

Original issue reported on code.google.com by will.han...@gmail.com on 13 Apr 2012 at 8:20

GoogleCodeExporter commented 9 years ago
You could either use .blur() (which is what you really want, not a close) or 
just move the focus somewhere else with .focus(), either should close the 
dropdown.  

Original comment by thetoolman on 21 May 2012 at 3:42