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
I'm trying to disable the behavior of the click outside dynamically by changing the isActive property of the config object but the behavior still the same.
I know I can use the middleware to handle this (check line 36) but I don't know if the config of click outside expects to be dynamically.
As a workaround, you can use a computed property that returns a new object whenever your configuration changes and use this computed in the directive. At the moment vuejs marks the directive new and old object as the same object on the update hook 😓 I guess I can store the config and compare it my self on the directive instead of relying on these attributes.
I'm trying to disable the behavior of the click outside dynamically by changing the
isActive
property of theconfig
object but the behavior still the same.I know I can use the middleware to handle this (check line 36) but I don't know if the config of click outside expects to be dynamically.
https://codesandbox.io/s/v-click-outside-e4vin
The text was updated successfully, but these errors were encountered: