Skip to content

Conversation

dmytro-ch
Copy link
Contributor

Original Pull Request

#15499
Fixes Javascript error in dropdowns.js by properly initializing the el variable. options.autoclose can now be set to false

Description

Initialize the el variable outside of the condition checking for options.autoclose === true

Fixed Issues

  1. lib/web/mage/dropdowns.js fails when autoclose is set to true #15469: lib/web/mage/dropdowns.js fails when autoclose is set to true

Manual testing scenarios

  1. In a javascript file, call dropdown on an element with autoclose: false
$(this.selector).dropdown({
    autoclose: false
});
  1. Open and close the dropdown, verifying no javascript errors occur in the console

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

Fixes Javascript error in dropdowns.js by properly initializing the el variable. options.autoclose can now be set to false
@magento-engcom-team
Copy link
Contributor

Hi @dmytro-ch. Thank you for your contribution.
Changes from your Pull Request will be available with the upcoming 2.3.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Lib/Frontend Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants