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
Vue directive to react on clicks outside an element without stopping the event propagation. Great for closing dialogues, menus among other things.
10
+
Vue directive to react on clicks outside an element without stopping the event propagation.
11
+
Great for closing dialogues and menus among other things.
11
12
12
13
## Install
13
14
@@ -39,7 +40,7 @@ Vue.use(vClickOutside)
39
40
// Note: The default value is true, but in case you want to activate / deactivate
40
41
// this directive dynamically use this attribute.
41
42
isActive:true,
42
-
// Note: The default value is true. See detecting "Detecting Iframe Clicks" section
43
+
// Note: The default value is true. See "Detecting Iframe Clicks" section
43
44
// to understand why this behaviour is behind a flag.
44
45
detectIFrame:true
45
46
}
@@ -145,17 +146,11 @@ export default {
145
146
146
147
See [#220](https://github.com/ndelvalle/v-click-outside/issues/220) for details or [check-out this demo](https://codesandbox.io/s/v-click-outside-programatic-usage-o9drq)
The `notouch` modifier is no longer supported, same functionality can be achieved using a middleware function
155
-
156
-
## Migrate from version 2
157
-
158
-
The HTML `el` is not sent in the handler function argument any more. Review [this issue](https://github.com/ndelvalle/v-click-outside/issues/137) for more details.
159
154
160
155
## Detecting Iframe Clicks
161
156
@@ -170,6 +165,15 @@ Clicks on iframes moves `focus` to its contents’ `window` but don't `bubble` u
170
165
Because of these reasons, the detection mechansim is behind the `detectIframe` flag that you can optionally set to `false` if you find it conflicting with your use-case.
171
166
Any improvements or suggestions to this are welcomed.
172
167
168
+
169
+
## Migrate from version 1
170
+
171
+
The `notouch` modifier is no longer supported, same functionality can be achieved using a middleware function
172
+
173
+
## Migrate from version 2
174
+
175
+
The HTML `el` is not sent in the handler function argument any more. Review [this issue](https://github.com/ndelvalle/v-click-outside/issues/137) for more details.
0 commit comments