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

    Alert appears on div (initially q-banner) on tab switch

    Help
    4
    5
    190
    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.
    • C
      Chris11 last edited by

      Hello,

      in my app I have no alert used whatsoever.

      In the two tabs I created, one q-banner always gets a weird css if I change out to a different tab and then back in. I cannot explain it why this happens.

      I don’t know why it adds this role=“alert” in the html, which I didn’t intended

      I’d appreciate a useful hint.

      3ac54c2b-f39c-4e3a-a5e0-536878f4ae9c-image.png

      <div class="MatrixAuswahlBereich">
            <q-banner>  
              <p id="matrixErzeugenHeading"><b>Matrix über Eingabe erzeugen:</b></p>
              <q-form @submit="erzeugeMatrix">
                <div id="matrixErzeugen1">
      

      075b9f79-ec55-42f4-9425-0c846df5058a-image.png

      71d91b31-5077-4491-b939-8a939b385ca8-image.png

      beets 1 Reply Last reply Reply Quote 0
      • beets
        beets @Chris11 last edited by

        @chris11 It looks like q-banner always has role=“alert” on it. It’s a bit hard to figure out what’s going on based on your screenshots though. It would be helpful to take even a video, or better yet some sort of reproduction on codepen.

        One thing I notice, is that you’re wrapping a <q-form> in <q-banner>, which on the surface, I would say that’s not what you intend to do.

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

          QBanner used to be QAlert in older versions. I think you should file a ticket at the repo with an explanation why it should be change, otherwise you probably should adjust your code and use something like a QCard instead.

          1 Reply Last reply Reply Quote 0
          • C
            Chris11 last edited by

            Thank you @beets and @metalsadman. I use qcard instead and it works without any problems!
            Actually I never filed a ticket, so I wouldn’t know how to do it. Maybe I’ll find a tutorial on that 🙂

            dobbel 1 Reply Last reply Reply Quote 0
            • dobbel
              dobbel @Chris11 last edited by

              @chris11

              Actually I never filed a ticket, so I wouldn’t know how to do it. Maybe I’ll find a tutorial on that

              The Quasar community will be grateful for your contribution!

              Here’s some info about how to post an issue:
              https://docs.github.com/en/github/managing-your-work-on-github/creating-an-issue

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