element-internals-polyfill
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -5,2 +5,10 @@ # Changelog | ||
### [0.1.2](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.1.1...v0.1.2) (2021-02-06) | ||
### Bug Fixes | ||
* **formAssociatedCallback:** make sure internals are available when formAssociatedCallback is called ([df9effa](https://github.com/calebdwilliams/element-internals-polyfill/commit/df9effa3d01c4b88a1de5ece45acdddc7df4e983)) | ||
* **setValidity:** added missing anchor in method signature. ([0290325](https://github.com/calebdwilliams/element-internals-polyfill/commit/029032515dc1ba3ea250fb140f9df3eb67cbb476)) | ||
### [0.1.1](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.1.0...v0.1.1) (2020-11-18) | ||
@@ -7,0 +15,0 @@ |
@@ -60,3 +60,3 @@ import { IElementInternals, ICustomElement, LabelsList } from './types'; | ||
*/ | ||
setValidity(validityChanges: Partial<globalThis.ValidityState>, validationMessage?: string): void; | ||
setValidity(validityChanges: Partial<globalThis.ValidityState>, validationMessage?: string, anchor?: HTMLElement): void; | ||
/** The element's validation message set during a call to ElementInternals.setValidity */ | ||
@@ -63,0 +63,0 @@ get validationMessage(): string; |
@@ -211,3 +211,5 @@ (function () { | ||
if (ref.constructor['formAssociated'] && ref.formAssociatedCallback) { | ||
ref.formAssociatedCallback.apply(ref, [form]); | ||
setTimeout(() => { | ||
ref.formAssociatedCallback.apply(ref, [form]); | ||
}, 0); | ||
} | ||
@@ -416,3 +418,3 @@ } | ||
*/ | ||
setValidity(validityChanges, validationMessage) { | ||
setValidity(validityChanges, validationMessage, anchor) { | ||
const ref = refMap.get(this); | ||
@@ -419,0 +421,0 @@ if (!validityChanges) { |
{ | ||
"name": "element-internals-polyfill", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A polyfill for the element internals specification", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
47037
752