Skip to content

Commit 511833a

Browse files
committed
fix: update observer obseve param to type and and attributeName to attributeFilter
1 parent a05ad42 commit 511833a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const CoCreateFloatingLabel = {
113113

114114
observer.init({
115115
name: "CoCreateFloatingLabelInit",
116-
observe: ["addedNodes"],
116+
types: ["addedNodes"],
117117
selector: "floating-label, .floating-label",
118118
callback: (mutation) => {
119119
CoCreateFloatingLabel.init(mutation.target);
@@ -122,8 +122,8 @@ observer.init({
122122

123123
observer.init({
124124
name: "CoCreateFloatingLabelInit",
125-
observe: ["attributes"],
126-
attributeName: ["placeholder"],
125+
types: ["attributes"],
126+
attributeFilter: ["placeholder"],
127127
selector: ".floating-label",
128128
callback: (mutation) => {
129129
let value = mutation.target.getAttribute("placeholder");

0 commit comments

Comments
 (0)