We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Forced double click on button

Home Forums Bug Reports and Feature Requests Forced double click on button

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12836
    Ozbend
    Customer

    I have 2 elements to show and hide by clicking on the 2 buttons. If I click on one of them and after that I want to show or to hide the second element, I have to click twice, because for the first time nothing happens. After that I want to back to first element and again I have to click twice for the first time. It seems that the button is need to be selected and only then it works. Perhaps the problem is in logic? Or bug?

    #12841
    elk
    Customer

    not quite sure here without seeing your setup, but are you not using the same state for both buttons/objects, try giving them separat state variables, otherwise you would toggle the state for both each time, and only updating the one you clicked to whatever the “next” state would be.

    #12843
    Ozbend
    Customer

    Solved.

    #12845
    elk
    Customer

    :good:

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.