-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedProgress: PR CreatedIndicates that Pull Request has been created to fix issueIndicates that Pull Request has been created to fix issue
Description
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.
Preconditions
- Magento 2.2 or greater
- Any version of PHP, MySQL
- Any Browser
Steps to reproduce
- Call function 'dropdown' on a jquery element, specifying 'autoclose: false' as an option
$(this.selector).dropdown({
autoclose: false
});
- Open the dropdown
- Click anywhere inside the dropdown content
Expected result
- The dropdown should remain open
Actual result
- Console error indicating we cannot call function hasClass on undefined
el
is undefined
Metadata
Metadata
Assignees
Labels
Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedProgress: PR CreatedIndicates that Pull Request has been created to fix issueIndicates that Pull Request has been created to fix issue