Close the dropdown in the scores globe when any area outside the dropdown is clicked #43
Labels
data viz
Related to any of the D3 data visualization elements
enhancement
New feature or request
priority: low
scores globe
Related to the global scores map that is shown on the global scores page
The scores globe uses a custom dropdown element so that the SVG icons can be shown alongside the goal name. This element acts exactly like a normal
<input>
, except that clicking outside the dropdown does not close it as would be expected. Indata-viz/dropdown.js
, add a listener to close the dropdown when a user clicks outside the element.The text was updated successfully, but these errors were encountered: