You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.Use Vue.extend to create a new component Notify.
2.call Notify() to show blue square in mounted method
3.call close() to hide blue square in beforeDetroy method,but it doesn't work
What is expected?
The blue square can be closed in beforeDestroy.
What is actually happening?
The blue square still show when call beforeDestroy method.
Because I use element-ui's Notification component, its implementation is similar to the above, it cannot be closed in beforeDestroy, or even onbeforeUnmount in setup syntax. Also, the onBeforeUpdate is able to close.
The text was updated successfully, but these errors were encountered:
Version
2.7.8
Reproduction link
codepen.io/Ch2x/pen/VwXMbJm
Steps to reproduce
1.Use Vue.extend to create a new component Notify.
2.call Notify() to show blue square in mounted method
3.call close() to hide blue square in beforeDetroy method,but it doesn't work
What is expected?
The blue square can be closed in beforeDestroy.
What is actually happening?
The blue square still show when call beforeDestroy method.
Because I use element-ui's Notification component, its implementation is similar to the above, it cannot be closed in beforeDestroy, or even onbeforeUnmount in setup syntax. Also, the onBeforeUpdate is able to close.
The text was updated successfully, but these errors were encountered: