There was an error while loading. Please reload this page.
1 parent a05ad42 commit 511833aCopy full SHA for 511833a
src/index.js
@@ -113,7 +113,7 @@ const CoCreateFloatingLabel = {
113
114
observer.init({
115
name: "CoCreateFloatingLabelInit",
116
-observe: ["addedNodes"],
+types: ["addedNodes"],
117
selector: "floating-label, .floating-label",
118
callback: (mutation) => {
119
CoCreateFloatingLabel.init(mutation.target);
@@ -122,8 +122,8 @@ observer.init({
122
123
124
125
-observe: ["attributes"],
126
-attributeName: ["placeholder"],
+types: ["attributes"],
+attributeFilter: ["placeholder"],
127
selector: ".floating-label",
128
129
let value = mutation.target.getAttribute("placeholder");
0 commit comments