input.textAsync() input field is "disabled" in css

Hello, I am using the input.textAsync() to ask the user to choose a supplier. When I run the script, the input field pops up fine but the input field is disabled. Also, the next button is missing as well. I do have the input in an if statement after I iterate an array to generate the string listing the suppliers. Not sure if that could be the issue.

When I use the input.textAsync() at the top of the script without any nesting, it works fine. Anything I can do to fix this? I am using the Chrome browser