nice-elements 1.16.1 → 1.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +7 -1
- package/dist/nice.min.js +1 -1
- package/package.json +1 -1
- package/src/directives/nice-click-outside.js +6 -0
- package/src/services/nice-service.js +1 -1
package/package.json
CHANGED
|
@@ -36,6 +36,12 @@ angular.module('niceElements')
|
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
// the click removed its own target (e.g. a re-rendered ng-repeat calendar day),
|
|
40
|
+
// so we can't tell where it was - treat it as an inside click
|
|
41
|
+
if (!document.documentElement.contains(e.target)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
// loop through the available elements, looking for classes in the class list that might match and so will eat
|
|
40
46
|
for (element = e.target; element; element = element.parentNode) {
|
|
41
47
|
// check if the element is the same element the directive is attached to and exit if so (props @CosticaPuntaru)
|