Sha256: 7731364df227c6fa84222f22969ff76efca2e5a59743bf0db58770f487316893

Contents?: true

Size: 333 Bytes

Versions: 24

Compression:

Stored size: 333 Bytes

Contents

export default {
  data() {
    return { currentDropdown: null }
  },
  methods: {
    onDropdownToggle(dropdown) {
      if (
        dropdown.open &&
        this.currentDropdown &&
        dropdown !== this.currentDropdown
      ) {
        this.currentDropdown.close()
      }
      this.currentDropdown = dropdown
    },
  },
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
maglevcms-1.7.3 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.7.2 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.7.1 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.7.0 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.6.1 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.6.0 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.5.1 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.4.0 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.3.0 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.2.2 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.2.1 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.2.0 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.1.7 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.1.6 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.1.5 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.1.4 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.1.3 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.1.2 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.1.1 app/frontend/editor/mixins/grouped-dropdowns.js
maglevcms-1.1.0 app/frontend/editor/mixins/grouped-dropdowns.js