Skip to content

Popover close event #3910

Open
Open
@Milchreis

Description

@Milchreis

Description

Hi,

in nuxt-ui 3 the Popover element got some changes. Now the template #content doens't return the close object. This object was a function to close the Popover menu. Is was really helpful to delegate the action to other components. I used it in nuxt-ui 2 to close the popup after a save-action.

Is there a chance to get the object back in ui 3 or have I missed the current way to use it?

nuxt ui 3

 <UPopover>
   <UButton>click</UButton>

  <template #content>
    <!-- ... -->
  </template>
</UPopover>

nuxt ui 2

 <UPopover>
   <UButton>click</UButton>

  <template #panel="{ close }">
    <!-- ... -->
  </template>
</UPopover>

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions