{"action":"created","issue":{"url":"https://api.github.com/repos/HubSpot/drop/issues/109","labels_url":"https://api.github.com/repos/HubSpot/drop/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/HubSpot/drop/issues/109/comments","events_url":"https://api.github.com/repos/HubSpot/drop/issues/109/events","html_url":"https://github.com/HubSpot/drop/issues/109","id":104683325,"number":109,"title":"Option for keeping only one drop open?","user":{"login":"sjelfull","id":10508,"avatar_url":"https://avatars.githubusercontent.com/u/10508?v=3","gravatar_id":"","url":"https://api.github.com/users/sjelfull","html_url":"https://github.com/sjelfull","followers_url":"https://api.github.com/users/sjelfull/followers","following_url":"https://api.github.com/users/sjelfull/following{/other_user}","gists_url":"https://api.github.com/users/sjelfull/gists{/gist_id}","starred_url":"https://api.github.com/users/sjelfull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjelfull/subscriptions","organizations_url":"https://api.github.com/users/sjelfull/orgs","repos_url":"https://api.github.com/users/sjelfull/repos","events_url":"https://api.github.com/users/sjelfull/events{/privacy}","received_events_url":"https://api.github.com/users/sjelfull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-03T12:44:34Z","updated_at":"2015-09-11T15:12:24Z","closed_at":null,"body":"I'm using Drop to do a dropdown action menu on buttons, and I would like only one to stay open at a time.\r\n\r\nWould you consider adding an option like `maxOpenDrops`or the like?"},"comment":{"url":"https://api.github.com/repos/HubSpot/drop/issues/comments/139571600","html_url":"https://github.com/HubSpot/drop/issues/109#issuecomment-139571600","issue_url":"https://api.github.com/repos/HubSpot/drop/issues/109","id":139571600,"user":{"login":"sjelfull","id":10508,"avatar_url":"https://avatars.githubusercontent.com/u/10508?v=3","gravatar_id":"","url":"https://api.github.com/users/sjelfull","html_url":"https://github.com/sjelfull","followers_url":"https://api.github.com/users/sjelfull/followers","following_url":"https://api.github.com/users/sjelfull/following{/other_user}","gists_url":"https://api.github.com/users/sjelfull/gists{/gist_id}","starred_url":"https://api.github.com/users/sjelfull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjelfull/subscriptions","organizations_url":"https://api.github.com/users/sjelfull/orgs","repos_url":"https://api.github.com/users/sjelfull/repos","events_url":"https://api.github.com/users/sjelfull/events{/privacy}","received_events_url":"https://api.github.com/users/sjelfull/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T15:12:24Z","updated_at":"2015-09-11T15:12:24Z","body":"Your right, I see that's the default behaviour.\r\n\r\nThis us the code that create the Drop instances:\r\n\r\n```js\r\nvar $dropdownTriggers;\r\n\r\n$dropdownTriggers = $('.js-dropdownTriggerLink');\r\n$dropdownTriggers.each(function() {\r\n    var $target, content, drop;\r\n\r\n    $target = $(this);\r\n    content = $($target.attr('data-target')).html();\r\n\r\n    return drop = new Drop({\r\n        target: $target.get(0),\r\n        position: 'bottom center',\r\n        openOn: 'click',\r\n        content: content,\r\n        tetherOptions: {\r\n            offset: '-15px 0'\r\n        }\r\n    });\r\n});´´´\r\n\r\nThe extensions idea sounds really great! During this project, i've needed behaviour that might be edge-cases for the Drop.js project, but very normal needs for the project / myself. Would have been perfect if there was an easy way to add these in."}}