Disabling switch on condition Claude Ai says it's right...so it should work right?

I seem to have a lot of problems using the class toggle for switches.


image

Checked code with Claude AI it says it should work…is this a bug??

You should use dmx-bind:disabled="" instead of just changing the class, you want to actually use the disabled attribute. So replace the dmx-class:disabled with dmx-bind:disabled and tell Claude … she/he can’t code :rofl:

3 Likes

Thanks Teodor,
Works a treat!
I will pass on the message to Claude, I won’t tell him/her it was from you just incase of any repercussions… :joy:

3 Likes