heatherbooker / vue-sticky-scroll

vue.js 1.x directive to always auto-scroll to the bottom of an element!
19 stars 1 forks source link

TypeError: Failed to execute 'observe' on 'MutationObserver' #2

Open RicardoRamirezR opened 8 years ago

RicardoRamirezR commented 8 years ago

Using Vue v2.0.3, I got:

TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'.

I did:

-  11:    bind: function() {
+  11:    bind: function(el) {

and

-  17:       observer.observe(this.el, config);
+  17:       observer.observe(el, config);

It just works.

Then it complains about me.el so:

+21:    var me_el = el;

And changed all me.el by me_el and it went really nice.

Hope this make sense and you really did a nice work.

tiaguinhor commented 8 years ago

+1

heatherbooker commented 7 years ago

Cool! Thanks for letting me know. I'll try to fix this in the coming weeks; in the meantime I'll update the readme to inform people it was built for Vue 1.0.

n0n0n0n0 commented 7 years ago

will u fix this?

theomessin commented 7 years ago

https://github.com/theomessin/vue-chat-scroll

heatherbooker commented 7 years ago

thanks @theomessin , i've updated the readme of this repo to point vue2.0 users to your fork! :)