{"action":"opened","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/15469","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/15469/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/15469/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/15469/events","html_url":"https://github.com/magento/magento2/issues/15469","id":325869366,"number":15469,"title":"lib/web/mage/dropdowns.js fails when autoclose is set to ","user":{"login":"brian-labelle","id":8193356,"avatar_url":"https://avatars2.githubusercontent.com/u/8193356?v=4","gravatar_id":"","url":"https://api.github.com/users/brian-labelle","html_url":"https://github.com/brian-labelle","followers_url":"https://api.github.com/users/brian-labelle/followers","following_url":"https://api.github.com/users/brian-labelle/following{/other_user}","gists_url":"https://api.github.com/users/brian-labelle/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-labelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-labelle/subscriptions","organizations_url":"https://api.github.com/users/brian-labelle/orgs","repos_url":"https://api.github.com/users/brian-labelle/repos","events_url":"https://api.github.com/users/brian-labelle/events{/privacy}","received_events_url":"https://api.github.com/users/brian-labelle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-23T20:53:33Z","updated_at":"2018-05-23T20:53:33Z","closed_at":null,"author_association":"NONE","body":"Magento's lib/web/mage/dropdowns.js has a bug that prevents a developer from specifying `autoclose: false` as an option for the dropdown function.\r\n\r\n<!--- Provide a general summary of the issue in the Title above -->\r\n<!--- Before adding new issues, please, check this article https://github.com/magento/magento2/wiki/Issue-reporting-guidelines-->\r\n\r\n### Preconditions\r\n<!--- Provide a more detailed information of environment you use -->\r\n<!--- Magento version, tag, HEAD, etc., PHP & MySQL version, etc.. -->\r\n1. Magento 2.2 or greater\r\n2. Any version of PHP, MySQL\r\n3. Any Browser\r\n\r\n### Steps to reproduce\r\n<!--- Provide a set of unambiguous steps to reproduce this bug include code, if relevant  -->\r\n1. Call function 'dropdown' on a jquery element, specifying 'autoclose: false' as an option\r\n```\r\n$(this.selector).dropdown({\r\n    autoclose: false\r\n});\r\n```\r\n2. Open the dropdown\r\n3. Click anywhere inside the dropdown content \r\n\r\n### Expected result\r\n<!--- Tell us what should happen -->\r\n1. The dropdown should remain open\r\n\r\n### Actual result\r\n<!--- Tell us what happens instead -->\r\n1. Console error indicating we cannot call function hasClass on undefined\r\n   1. `el` is undefined\r\n"}}
{"actor":{"display_login":"brian-labelle"}}