Issue with Dropdown Search and Default Value when No Results Found

Hi everyone,

I'm encountering an issue with the Dropdown component in Retool when using the search feature. Specifically, when I search for a value that doesn't exist in the options, after blurring out of the dropdown, the displayed value becomes empty instead of keeping the default value. I would like the dropdown to retain the default value when no matching result is found, rather than showing a blank field. Please check image below:

Has anyone experienced this issue or found a solution?
Thanks in advance!

This could be an issue with how Retool updates the DOM or re-renders the component.

Hi @nhanhv! Thanks for reaching out.

What does it mean to blur out the element? Is that another way to talk about it no longer being in focus? I've spent a bit of time playing around with the dropdown in an effort to break it in the manner that you've described, but I've been unsuccessful so far. I recorded my attempts here.

I do think it's weird that the inputValue is saved after the component loses focus and will probably report that as a bug, but the display value seemed unaffected in my testing.

Thanks @Darren
Please watch the video here

1 Like

Very interesting! I'm guessing that you're on an older version of Retool, then, as I'm able to replicate this bug after reverting to 3.52, specifically. It seems to be fixed on the latest stable release (3.75) and on cloud, as well. If you can, I'd recommend upgrading!

1 Like

Thanks, the upgrade seems important, so I'll consider it later.

1 Like