borderWidth can't be set to "0px" via Velo

Question:
I am unable to set a borderWidth property to “0px” via Velo. When I try, no error is generated, but the object is not affected. When I try to get the borderWidth of an object whose border is 0px, it returns undefined.

Examples:

$w(“#myButton”).style.borderWidth = “1px”
console.log($w(“#myButton”).style.borderWidth) //returns “1px”

$w(“#myButton”).style.borderWidth = “0px”
console.log($w(“#myButton”).style.borderWidth) // returns undefined

Am I missing something?

Product:
Wix Studio

It seems that borderWidth can’t be set to 0px. I’ll report this internally but please also reach out to Contact Wix about this issue.

2 Likes

Thank you, Anthony! I did report this to Contact Wix, but I got back what appeared to be a form letter saying they needed more info from me. The code example is pretty straightforward, so I told them I didn’t know what else I could do. I’m hopeful they’ll figure this out.

Hi Anthony, I’m having this same issue. Do you have any updates?

No word yet. I’ve pinged the team handling this!

Hi, having the same issue… any workaround?