@lion/field
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.2.3](https://github.com/ing-bank/lion/compare/@lion/field@0.2.2...@lion/field@0.2.3) (2019-09-13) | ||
### Bug Fixes | ||
* **field:** change FocusEvent to regular Event to support IE11 ([fb25057](https://github.com/ing-bank/lion/commit/fb25057)) | ||
## [0.2.2](https://github.com/ing-bank/lion/compare/@lion/field@0.2.1...@lion/field@0.2.2) (2019-08-23) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@lion/field", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Fields are the most fundamental building block of the Form System", | ||
@@ -45,3 +45,3 @@ "author": "ing-bank", | ||
}, | ||
"gitHead": "3c7f5ab3f07411077fa65c5c9c77ac0b00ead3b0" | ||
"gitHead": "5f9521224540d538c09c2d33d9ea6a8cd91ce97c" | ||
} |
@@ -85,3 +85,3 @@ import { dedupeMixin } from '@lion/core'; | ||
ev.stopPropagation(); | ||
this.dispatchEvent(new FocusEvent('focus')); | ||
this.dispatchEvent(new Event('focus')); | ||
}; | ||
@@ -93,3 +93,3 @@ this.inputElement.addEventListener('focus', this.__redispatchFocus); | ||
ev.stopPropagation(); | ||
this.dispatchEvent(new FocusEvent('blur')); | ||
this.dispatchEvent(new Event('blur')); | ||
}; | ||
@@ -102,3 +102,3 @@ this.inputElement.addEventListener('blur', this.__redispatchBlur); | ||
this._onFocus(ev); | ||
this.dispatchEvent(new FocusEvent('focusin', { bubbles: true, composed: true })); | ||
this.dispatchEvent(new Event('focusin', { bubbles: true, composed: true })); | ||
}; | ||
@@ -111,3 +111,3 @@ this.inputElement.addEventListener('focusin', this.__redispatchFocusin); | ||
this._onBlur(); | ||
this.dispatchEvent(new FocusEvent('focusout', { bubbles: true, composed: true })); | ||
this.dispatchEvent(new Event('focusout', { bubbles: true, composed: true })); | ||
}; | ||
@@ -114,0 +114,0 @@ this.inputElement.addEventListener('focusout', this.__redispatchFocusout); |
@@ -80,3 +80,3 @@ import { expect, fixture, html, defineCE, unsafeStatic, oneEvent } from '@open-wc/testing'; | ||
const focusEv = await oneEvent(el, 'focus'); | ||
expect(focusEv).to.be.instanceOf(FocusEvent); | ||
expect(focusEv).to.be.instanceOf(Event); | ||
expect(focusEv.target).to.equal(el); | ||
@@ -91,3 +91,3 @@ expect(focusEv.bubbles).to.be.false; | ||
const blurEv = await oneEvent(el, 'blur'); | ||
expect(blurEv).to.be.instanceOf(FocusEvent); | ||
expect(blurEv).to.be.instanceOf(Event); | ||
expect(blurEv.target).to.equal(el); | ||
@@ -104,3 +104,3 @@ expect(blurEv.bubbles).to.be.false; | ||
const focusinEv = await oneEvent(el, 'focusin'); | ||
expect(focusinEv).to.be.instanceOf(FocusEvent); | ||
expect(focusinEv).to.be.instanceOf(Event); | ||
expect(focusinEv.target).to.equal(el); | ||
@@ -115,3 +115,3 @@ expect(focusinEv.bubbles).to.be.true; | ||
const focusoutEv = await oneEvent(el, 'focusout'); | ||
expect(focusoutEv).to.be.instanceOf(FocusEvent); | ||
expect(focusoutEv).to.be.instanceOf(Event); | ||
expect(focusoutEv.target).to.equal(el); | ||
@@ -118,0 +118,0 @@ expect(focusoutEv.bubbles).to.be.true; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
205986