Skip to content

[NcActions] 'closed' event is not emmited in v9Β #8200

@odzhychko

Description

@odzhychko

The closed event is not emitted when the popover menu created by NcActions is closed.

Steps to Reproduce

Given the following setup:

<template>
  <NcActions @close="showMessage('Close')" @closed="showMessage('Closed')">
    <NcActionButton @click="showMessage('Edit')"> Edit </NcActionButton>
    <NcActionButton @click="showMessage('Delete')">Delete </NcActionButton>
  </NcActions>
</template>
<script>
export default {
  methods: {
    showMessage(msg) {
      alert(msg);
    },
  },
};
</script>
  1. Click on the menu indicator to open the popover
  2. Click outside the popover to close it
  3. (Observe the close event being emitted in v8 and v9)
  4. Observe the closed event
    • being emitted in v8
    • not being emitted in v9

Actual Behavior

closed event is not emitted in v9.

Expected Behavior

closed event being emitted.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions