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

    [Solved] Sidebar and router

    Help
    3
    9
    2187
    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.
    • S
      smakinson last edited by smakinson

      I’m seeing an odd behavior with a side bar. I have the left sidebar and I have some q-side-link’s in it and they work fine, but I have an icon bar that opens the sidebar. Some of the icons open it and some change the route using the this.$router.push({name: ‘blah’}) method. If I open the sidebar and then change the route using one of the icons outside the sidebar, when I go to close the sidebar either with the close button I have or clicking the layouts overlay, the route goes back to where I had it when the sidebar opens, then if I click again it closes the sidebar. Anyone else run into this?

      1 Reply Last reply Reply Quote 1
      • S
        smakinson last edited by

        Possible related error:

        Uncaught TypeError: Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.
        at style (81:356)
        at width (81:370)
        at VueComponent.__redraw (81:10817)
        at VueComponent.boundFn (21:166)
        at later (81:1094)

        1 Reply Last reply Reply Quote 0
        • R
          Raltzer last edited by

          Same problem here, no solution

          1 Reply Last reply Reply Quote 0
          • S
            smakinson last edited by

            I have been able to fix that error one by not changing the route until after the close callback is called on a modal I was seeing it from. For example:

            layout.hideLeft(() => {
            // now change the route.
            })

            1 Reply Last reply Reply Quote 0
            • benoitranque
              benoitranque last edited by

              Sorry I missed this post. I had this exact issue and solved it the exact same way. If your problem is solved, please mark as solved

              1 Reply Last reply Reply Quote 0
              • S
                smakinson last edited by

                I might be blind 🙂 where is the option to mark something as solved?

                1 Reply Last reply Reply Quote 0
                • benoitranque
                  benoitranque last edited by

                  Add [Solved] to your title 😉

                  1 Reply Last reply Reply Quote 0
                  • S
                    smakinson last edited by

                    Oh, ha! Ok.

                    1 Reply Last reply Reply Quote 0
                    • R
                      Raltzer last edited by

                      Nice! My biggest problems with sidebar and routes solved!

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