Default Selection for Select Field
I have the following array I am binding to a
Select
field. And setting the default('text-gray-900)
and it doesn't work when the field is set to searchable
. If I disable searchable
then the default value works.4 Replies
For some reason, I am having the same issue with the
TextInput
as well. The default
isn't getting set. Here is the code for the Text Input
Are you editing an existing record or creating a new one?
existing record
ok, makes sense, my bad..
You may use afterStateHydrated if you want