Skip to content

How to scroll div automatically with textarea in Vue? How to get an element properly? #9546

@Issabln

Description

@Issabln

I'm trying to implement this example (https://codepen.io/lonekorean/pen/gaLEMR) in Vue.

My Template:

grafik

and this is my handleScroll() function

grafik

The problem is somewhere in the handleScroll()-method. It doesn't get the div and the textarea properly. I tried in in different ways as you see many lines in the method are commented. My code works now exactly as when you delete the content of the handleScroll()-method in the given example(link at top).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions