@vaadin/field-base 24.5.0-alpha4 → 24.5.0-alpha6

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": "@vaadin/field-base",
3
- "version": "24.5.0-alpha4",
3
+ "version": "24.5.0-alpha6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,8 +32,8 @@
32
32
  "dependencies": {
33
33
  "@open-wc/dedupe-mixin": "^1.3.0",
34
34
  "@polymer/polymer": "^3.0.0",
35
- "@vaadin/a11y-base": "24.5.0-alpha4",
36
- "@vaadin/component-base": "24.5.0-alpha4",
35
+ "@vaadin/a11y-base": "24.5.0-alpha6",
36
+ "@vaadin/component-base": "24.5.0-alpha6",
37
37
  "lit": "^3.0.0"
38
38
  },
39
39
  "devDependencies": {
@@ -41,5 +41,5 @@
41
41
  "@vaadin/testing-helpers": "^0.6.0",
42
42
  "sinon": "^13.0.2"
43
43
  },
44
- "gitHead": "a2cd3079183a097b793073eeffd3bd59dec2b664"
44
+ "gitHead": "c5f541dbe961a994730d4c60472ae957bf6b4c12"
45
45
  }
@@ -189,7 +189,7 @@ export const InputControlMixin = (superclass) =>
189
189
  _onKeyDown(event) {
190
190
  super._onKeyDown(event);
191
191
 
192
- if (this.allowedCharPattern && !this.__shouldAcceptKey(event)) {
192
+ if (this.allowedCharPattern && !this.__shouldAcceptKey(event) && event.target === this.inputElement) {
193
193
  event.preventDefault();
194
194
  this._markInputPrevented();
195
195
  }
@@ -30,12 +30,4 @@ export declare class ValidateMixinClass {
30
30
  * Returns true if the field value satisfies all constraints (if any).
31
31
  */
32
32
  checkValidity(): boolean;
33
-
34
- /**
35
- * Fired whenever the field is validated.
36
- *
37
- * @event validated
38
- * @param {Object} detail
39
- * @param {boolean} detail.valid the result of the validation.
40
- */
41
33
  }