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

    How to prevent from being unselected of the selected node by clicking it

    Help
    3
    3
    75
    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
      cahitoncel last edited by

      Hi, is there any way to prevent the selected node from being unselected when clicking it. The selected node should be unselected only by clicking another node.

      dobbel I 2 Replies Last reply Reply Quote 0
      • dobbel
        dobbel @cahitoncel last edited by dobbel

        @cahitoncel

        you could set the selected node to “disabled”…
        A better solution would be to be able to set the tick box to read only.

        Or you could use the @update:ticked -> function(target) event.

        1 Reply Last reply Reply Quote 0
        • I
          Ilia @cahitoncel last edited by

          @cahitoncel In some cases, that might be useful to place an overlay div (class=“absolute-full”) which will catch all the clicks on it while the node is selected. Useful, when you have many components in one place (q-toggle, q-radio, etc.)

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