Merge pull request #3346 from danjm/i3228-event-not-defined

[old-ui] Define event locally in onClickOutside method in account-dropdowns.js
feature/default_network_editable
kumavis 7 years ago committed by GitHub
commit 40484b1c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      old-ui/app/components/account-dropdowns.js
  2. 2
      ui/app/components/account-dropdowns.js
  3. 2
      ui/app/components/dropdowns/components/account-dropdowns.js

@ -173,7 +173,7 @@ class AccountDropdowns extends Component {
minWidth: '180px', minWidth: '180px',
}, },
isOpen: optionsMenuActive, isOpen: optionsMenuActive,
onClickOutside: () => { onClickOutside: (event) => {
const { classList } = event.target const { classList } = event.target
const isNotToggleElement = !classList.contains(this.optionsMenuToggleClassName) const isNotToggleElement = !classList.contains(this.optionsMenuToggleClassName)
if (optionsMenuActive && isNotToggleElement) { if (optionsMenuActive && isNotToggleElement) {

@ -173,7 +173,7 @@ class AccountDropdowns extends Component {
minWidth: '180px', minWidth: '180px',
}, },
isOpen: optionsMenuActive, isOpen: optionsMenuActive,
onClickOutside: () => { onClickOutside: (event) => {
const { classList } = event.target const { classList } = event.target
const isNotToggleElement = !classList.contains(this.optionsMenuToggleClassName) const isNotToggleElement = !classList.contains(this.optionsMenuToggleClassName)
if (optionsMenuActive && isNotToggleElement) { if (optionsMenuActive && isNotToggleElement) {

@ -281,7 +281,7 @@ class AccountDropdowns extends Component {
dropdownWrapperStyle, dropdownWrapperStyle,
), ),
isOpen: optionsMenuActive, isOpen: optionsMenuActive,
onClickOutside: () => { onClickOutside: (event) => {
const { classList } = event.target const { classList } = event.target
const isNotToggleElement = !classList.contains(this.optionsMenuToggleClassName) const isNotToggleElement = !classList.contains(this.optionsMenuToggleClassName)
if (optionsMenuActive && isNotToggleElement) { if (optionsMenuActive && isNotToggleElement) {

Loading…
Cancel
Save