fix: rename unmount lifecycles
This commit is contained in:
@@ -28,6 +28,6 @@ export function BindEventMixin(handler: BindEventHandler) {
|
||||
mounted: bind,
|
||||
activated: bind,
|
||||
deactivated: unbind,
|
||||
beforeDestroy: unbind,
|
||||
beforeUnmount: unbind,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ export const ClickOutsideMixin = (config) => ({
|
||||
on(document, config.event, this.clickOutsideHandler);
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
beforeUnmount() {
|
||||
off(document, config.event, this.clickOutsideHandler);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -83,7 +83,7 @@ export function PopupMixin(options = {}) {
|
||||
}
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
beforeUnmount() {
|
||||
if (this.opened) {
|
||||
this.removeLock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user