Skip to content

Commit 546ceb9

Browse files
committed
fix: observer taget has been renamed to selector
1 parent a1982c4 commit 546ceb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const CoCreateFloatingLabel = {
112112
observer.init({
113113
name: 'CoCreateFloatingLabelInit',
114114
observe: ['addedNodes'],
115-
target: 'floating-label, .floating-label',
115+
selector: 'floating-label, .floating-label',
116116
callback: mutation => {
117117
CoCreateFloatingLabel.init(mutation.target);
118118
}
@@ -122,7 +122,7 @@ observer.init({
122122
name: 'CoCreateFloatingLabelInit',
123123
observe: ['attributes'],
124124
attributeName: ['placeholder'],
125-
target: '.floating-label',
125+
selector: '.floating-label',
126126
callback: mutation => {
127127
let value = mutation.target.getAttribute('placeholder');
128128
let floatinglabel = mutation.target.parentElement;

0 commit comments

Comments
 (0)