Skip to content

Commit 53f4376

Browse files
author
Graham Butler
committed
Add surrogate form injection
1 parent a1508c2 commit 53f4376

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

TODO.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Instead of calling `inject()` on surrogates, fire an event

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@author.io/element-control",
3-
"version": "1.0.11",
3+
"version": "1.0.12",
44
"description": "author-control custom element (web component).",
55
"main": "dist/author-control.min.js",
66
"scripts": {

src/element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ class AuthorFormControlElement extends AuthorBaseElement(HTMLElement) {
182182
}
183183
})
184184

185-
this.removeChild(original)
186185
surrogate.inject(original, this.querySelectorAll('label'))
186+
this.removeChild(original)
187187

188188
this.appendChild(surrogate)
189189
this.PRIVATE.input = surrogate

0 commit comments

Comments
 (0)