marghoobsuleman/ms-Dropdown — pull request #20 by manfer (2012-03-30 15:37:36+00:00)
Title: Problem in the close function

The close function is triggered any time the user clicks anywhere on the page. This happens even when the dropdown box is closed and while it is closing too.

The close function makes a slideup when it has been opened downwards and it makes an animation reducing height when it has been opened upwards.

That animation that changes height from actual height to 0 produces a weird problem if the user clicks fast in the arrow as the close and the open functions are triggered and eventually oldHeight variable gets 0 as its value, what makes the dropdown box to retain that 0 height not being able any more to open.

To solve that issue you have to ensure that the close function does nothing when the dropdown box is closed nor while it is closing.