Fork me on GitHub
#fulcro
<
2023-05-25
>
Jakub Holý (HolyJak)07:05:30

Hi! It seems to me that fo/default-value does not play well with the ToOnePicker, namely I expected the default value to be pre-selected in the picker, which it is not (but when I save the form, it is sent to the backend). I am still digging to find out why, or what am I doing wrong… (I see that the picker simply uses the value from the form’s props, where there is none in this case.)

2
tony.kay16:05:40

let me know what you find. It’s been a while since I wrote the default value code, and I don’t know if I documented it well enough.

👍 2
Jakub Holý (HolyJak)10:05:33

My bad, I used the wrong value, i.e. a plain keyword instead of a correctly namespaced keyword, as I have in my enum. It took me way too long to notice, but I learned a good deal 🙂 Also, it was not ToOnePicker, but en enum picker dropdown.