input-duration 2.2.5 → 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 +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -588,8 +588,9 @@ class InputDuration extends HTMLElement {
588
588
 
589
589
  removeEprop() {
590
590
 
591
+ var closure = this;
591
592
 
592
- document.querySelector('input-duration').shadowRoot.querySelector('.timeCase')
593
+ closure.shadowRoot.querySelector('.timeCase')
593
594
  .addEventListener('keydown', function (event) { event.stopPropagation();});
594
595
 
595
596
  // document.querySelectorAll('input-duration').forEach(x => x.shadowRoot.querySelector('.timeCase')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "input-duration",
3
- "version": "2.2.5",
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",