undo useState changes #10
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
useState seemed to be overriding placeholder value, and without a placeholder value, the boxes shrink on mobile to different sizes dependent on device. (see pic)
My bad fix: I changed useState defaults to what I wanted to use for placeholders.
What it did: This affected the range of time accepted for event input (should be only 1 hr in future to 7 days in future, but now accepts anything).
My conclusion: Placeholder values will not work with useState & useState should not be used to display placeholder values.
Quick fix: Must find way to keep input boxes open without placeholder value (possibly max width of input field?)
Ideal fix: Shouldn't useState be able to set placeholder values and not affect input accepted? Input accepted should be determined by schema & zod validation, and unaffected by what's displaying in the box by useState.
Note: Need to look to make sure changes weren't made to input validation.
The text was updated successfully, but these errors were encountered: