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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.16.2 (30.11.2026)
4
+
5
+ - fixed nice datetime picker and nice datetimerange picker (1 and 2) closing when a date is selected
6
+
3
7
  ## v1.16.1 (30.11.2026)
4
8
 
5
9
  - fixed nice search dropdown position (sits under the input),
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ![Nice elements](https://github.com/Klemen1337/angularjs-nice-elements/raw/master/demo/assets/logo.png)
2
2
 
3
- # Nice elements v1.16.1
3
+ # Nice elements v1.16.2
4
4
 
5
5
  Nice elements is an AngularJS v1.5.8 module that contains nice form elements like inputs, choice fields, search, toggle, dropdown, etc.
6
6
 
package/bower.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
  "authors": [
5
5
  "Klemen Kastelic <klemen@olaii.com>"
6
6
  ],
package/dist/nice.js CHANGED
@@ -6868,6 +6868,12 @@ angular.module('niceElements')
6868
6868
  return;
6869
6869
  }
6870
6870
 
6871
+ // the click removed its own target (e.g. a re-rendered ng-repeat calendar day),
6872
+ // so we can't tell where it was - treat it as an inside click
6873
+ if (!document.documentElement.contains(e.target)) {
6874
+ return;
6875
+ }
6876
+
6871
6877
  // loop through the available elements, looking for classes in the class list that might match and so will eat
6872
6878
  for (element = e.target; element; element = element.parentNode) {
6873
6879
  // check if the element is the same element the directive is attached to and exit if so (props @CosticaPuntaru)
@@ -7207,7 +7213,7 @@ angular.module('niceElements')
7207
7213
 
7208
7214
  const service = {
7209
7215
  name: "Nice elements",
7210
- version: "1.16.1",
7216
+ version: "1.16.2",
7211
7217
  getHeader: function () {
7212
7218
  return {};
7213
7219
  },