No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Q-Stepper not scrolling to the top when going forward/back

    Help
    3
    4
    284
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bryanbe last edited by

      Good evening. I’ve a small “problem” with the q-stepper. As the topic title says the q-stepper is not scrolling back to the top when clicking the continue or back buttons. Users have to manually scroll to the stop when changing steps. I’ve looked everywhere but couldn’t find an answer. Anyone has a tip on how to achieve this?

      Thank you very much

      B

      metalsadman 1 Reply Last reply Reply Quote 1
      • metalsadman
        metalsadman @bryanbe last edited by

        @bryanbe no ootb implentation of this, i suggest you take a look into scroll utils https://quasar.dev/quasar-utils/scrolling-utils.

        R 1 Reply Last reply Reply Quote 0
        • R
          Rusli Cali last edited by

          Can you give me sample on qstepper when i go next then it automatically scroll up. Im using a dialog on a stepper not a page. Hope you understand and give me sample. Thanks!

          1 Reply Last reply Reply Quote 0
          • R
            Rusli Cali @metalsadman last edited by

            @metalsadman
            next() {

              var element = document.getElementById("top");
              const target = getScrollTarget(element);
              const offset = element.offsetTop;
              const duration = 1000;
              this.$refs.stepper.next();
              setScrollPosition(target, offset, duration);
              console.log("next");
              console.log(target)
            },
            

            not working. :’(

            1 Reply Last reply Reply Quote 0
            • First post
              Last post