Is there a way to set the selectedIndex property of a collection via JS?
Can it be reset to null?
Is there a way to set the selectedIndex property of a collection via JS?
Can it be reset to null?
No, the selectedIndex
property is not settable. If you want mutable state I'd recommend using a Temporary State variable, which you can find in the left panel of the Retool Mobile editor.