Hi, I am using the Autocomplete Dropdown component and I should not show the dropdown if there is a special character typed and instead display a message. I achieved that but I am unable to fix the dropdown display. Can someone help me out please?
Basic behavior to achieve is dropdown shouldn't be shown initially, and should show ONLY when user starts typing in something and do not show dropdown in case user enters special characters and show a message.
P.S: I might have multiple autocomplete on a page. Any way to simplify my code?
Stackblitz: https://stackblitz.com/edit/react-dvpfg5?file=app/main.js