evidence icon indicating copy to clipboard operation
evidence copied to clipboard

[Bug]: Dropdown input select null handling

Open kwongz opened this issue 1 year ago • 1 comments

Describe the bug

On page load

<Dropdown data={categories} name=category1 value=category_name title="Select a Category" defaultValue="Sinister Toys"/> Selected: {inputs.category1.value}

Shows user a null error state, maybe a loading state for inputs would be better

Image

Steps to Reproduce

go to docs dropdown component, refresh page on first example

Logs

No response

System Info

No response

Severity

annoyance

Additional Information, or Workarounds

No response

kwongz avatar Oct 30 '24 14:10 kwongz

Not quite the same thing, but seems related to https://github.com/evidence-dev/evidence/issues/1479

I think unselected inputs should return a predictable value (be that null or something else) and not cause queries to be stuck in a loading state. Then you could write an if/else block to display different text to the user in the screenshot example.

nickfanion avatar Oct 30 '24 16:10 nickfanion