Skip to content

Commit

Permalink
feat: remove dispose event
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jan 8, 2024
1 parent ee27b15 commit 4be2062
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,6 @@ When the popper is going to be hidden.

Emitted after the hide delay.

### `dispose`

Popper instance is destroyed.

### `auto-hide`

Emitted when the popper is closed if clicked outside.
Expand Down
3 changes: 0 additions & 3 deletions packages/floating-vue/src/components/Popper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ export default () => defineComponent({
'close-directive': () => true,
'auto-hide': () => true,
'resize': () => true,
'dispose': () => true,
},

data () {
Expand Down Expand Up @@ -520,8 +519,6 @@ export default () => defineComponent({
this.$_updateParentShownChildren(false)

this.$_swapTargetAttrs('data-original-title', 'title')

this.$emit('dispose')
},

async onResize () {
Expand Down
2 changes: 0 additions & 2 deletions packages/floating-vue/src/components/PopperWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
@close-directive="() => $emit('close-directive')"
@auto-hide="() => $emit('auto-hide')"
@resize="() => $emit('resize')"
@dispose="() => $emit('dispose')"
>
<slot
:shown="isShown"
Expand Down Expand Up @@ -296,7 +295,6 @@ export default defineComponent({
'close-directive': () => true,
'auto-hide': () => true,
'resize': () => true,
'dispose': () => true,
},
computed: {
Expand Down

0 comments on commit 4be2062

Please sign in to comment.