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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nice-elements",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
4
4
  "description": "Nice elements used in olaii angular 1.x webapps.",
5
5
  "main": "dist/nice.js",
6
6
  "license": "MIT",
@@ -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)
@@ -148,7 +148,7 @@ angular.module('niceElements')
148
148
 
149
149
  const service = {
150
150
  name: "Nice elements",
151
- version: "1.16.1",
151
+ version: "1.16.2",
152
152
  getHeader: function () {
153
153
  return {};
154
154
  },