input-duration 2.2.3 → 2.2.6

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.
Files changed (2) hide show
  1. package/index.js +7 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -588,8 +588,13 @@ class InputDuration extends HTMLElement {
588
588
 
589
589
  removeEprop() {
590
590
 
591
- document.querySelectorAll('input-duration').forEach(x => x.shadowRoot.querySelector('.timeCase')
592
- .addEventListener('keydown', function (event) { event.stopPropagation();}));
591
+ var closure = this;
592
+
593
+ closure.shadowRoot.querySelector('.timeCase')
594
+ .addEventListener('keydown', function (event) { event.stopPropagation();});
595
+
596
+ // document.querySelectorAll('input-duration').forEach(x => x.shadowRoot.querySelector('.timeCase')
597
+ // .addEventListener('keydown', function (event) { event.stopPropagation();}));
593
598
 
594
599
  }
595
600
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "input-duration",
3
- "version": "2.2.3",
3
+ "version": "2.2.6",
4
4
  "author": "Stephan Luis <stephan@learnsense.org>",
5
5
  "description": "This is the 'Input-Duration'! It is a webcomponent that provides an hour, minute, second, and millisecond control for HTML5.",
6
6
  "browser": "indexjs",