Conditional fields not clearing upon submit
kbayliss opened this issue · comments
Kyle Bayliss commented
From @thibaudcolas:
This doesn’t seem to be working. Looking at the code, I think this is because the
[hidden=true]
selector won’t work, should be[hidden]
.In addition,
- Clearing the
value
onsubmit
andreset
inputs won’t be very desirable. It seems unlikely for us to use either, but I’d still prefer we don’t remove their label- I haven’t been able to test it but I don’t think clearing a
radio
orcheckbox
works like the code suggests - you’d need to find which input is checked, then.checked = false
.- For
select
– thenode.type
I get isselect-one
, and I think it would be better to set selectedIndex to 0.