Addepar/ember-widgets — pull request #31 by charlescharles (2014-03-27 20:41:52+00:00)
Title: Fix dropdown behavior

@bigsley

Here is what happened --
the first bug was that when you selected an item from the dropdown, the click would propagate and close the modal. I fixed this by preventing the click from propagating from the select component.
the second bug was that when a selection existed and the dropdown was not dropped-down, clicking on the select component to drop it down would cause the selectedItemView to swallow the click.

The solution to both bugs is just to check if the dropdown is dropped down; if it is, then we are in case 1, so we hide the dropdown and prevent propagation.