How to close Popper context menu when selecting a menu item?

755 Views Asked by At

Can't find a way to close context menu upon picking an item, using Popper. Seems like a fundamental feature though, am I missing something?

The only thing I see is a "hide" event but it's an event not a method.

1

There are 1 best solutions below

0
On BEST ANSWER

Like so:

<popper
  ref="popper"
  ...
>
   ...
</popper>

Then: this.$refs.popper.doClose()