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.

HTML set prop puzzle with property “disabled” doesn’t seam to work

Home Forums Bug Reports and Feature Requests HTML set prop puzzle with property “disabled” doesn’t seam to work

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #84959
    vklein
    Customer

    Verge 4.10 here.
    setting property “Disabled” to false do nothing.
    Disabled buttons remain clickable and don’t change to disabled style. (on click event firing) This shouldn’t work that way?

    #84960

    Hi,
    Checked this and it appears to be working fine. Please make sure you use proper ID for the button element and the “in parent doc” is enabled if you’re using iframes or disabled if not.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #84977
    vklein
    Customer

    I’m creating the buttons inside V3D and therefor succesfully asign other HTML properties and styles to them. I checked it 10 times and tested, I’m very sure my IDs and “parent doc” match.
    The button is created before I want to disable it. I also ruled out HTML style filters I put on my buttons like invert() or opacity().
    I will have to create some bools to ignore the code inside the on click events for now until I settled this.

    #84980

    I see,

    You might try to exec the follwing basic JS code in the browser console to verify the button is disabled properly:

    document.getElementById('ELEMENT_ID').disabled = true

    also the disabled status can be checked with:

    console.log(document.getElementById('ELEMENT_ID').disabled)

    Soft8Soft Tech Chief
    X | FB | LinkedIn

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