Skip to content

Commit

Permalink
Merge pull request #105 from gofynd/click-outside-fix
Browse files Browse the repository at this point in the history
Click outside fix
  • Loading branch information
vishu3011 authored Feb 10, 2023
2 parents cc9fcf2 + c315261 commit b15cdf7
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/nitrozen.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -13337,7 +13337,7 @@ const clickOutside = external_commonjs_vue_commonjs2_vue_root_Vue_default().dire
// Define Handler and cache it on the element
const bubble = binding.modifiers.bubble;
const handler = e => {
if (bubble || -1 == e.path.indexOf(el)) {
if (bubble || -1 == e && e.path && e.path.indexOf(el)) {
binding.value(e);
}
};
Expand Down
2 changes: 1 addition & 1 deletion dist/nitrozen.common.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/nitrozen.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -13347,7 +13347,7 @@ const clickOutside = external_commonjs_vue_commonjs2_vue_root_Vue_default().dire
// Define Handler and cache it on the element
const bubble = binding.modifiers.bubble;
const handler = e => {
if (bubble || -1 == e.path.indexOf(el)) {
if (bubble || -1 == e && e.path && e.path.indexOf(el)) {
binding.value(e);
}
};
Expand Down
2 changes: 1 addition & 1 deletion dist/nitrozen.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/nitrozen.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/nitrozen.umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gofynd/nitrozen-vue",
"version": "0.0.41",
"version": "0.0.42",
"description": "Fynd Design Library for Vue",
"homepage": "https://github.com/gofynd/nitrozen-vue#readme",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/directives/NClickOutside.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const clickOutside = Vue.directive('click-outside', {
// Define Handler and cache it on the element
const bubble = binding.modifiers.bubble
const handler = (e) => {
if (bubble || -1 == e.path.indexOf(el)) {
if (bubble || -1 == e && e.path && e.path.indexOf(el)) {
binding.value(e)
}
}
Expand Down

0 comments on commit b15cdf7

Please sign in to comment.