aws-amplify / aws-amplify/amplify-cli
unable to proceed in a filterable prompt after breaking out of the input field
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### Before opening, please confirm:
- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-cli/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-cli/blob/dev/CONTRIBUTING.md#bug-reports).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
### How did you install the Amplify CLI?
pnpm
### If applicable, what version of Node.js are you using?
18
### Amplify CLI Version
10.5.1
### What operating system are you using?
mac
### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
n/a
### Amplify Categories
Not applicable
### Amplify Commands
Not applicable
### Describe the bug
Similar to https://github.com/aws-amplify/amplify-cli/issues/11521, I encountered this using the API category. In a filterable prompt, type a few characters such as "hello", move the cursor to the left a few spaces, then hit backspace. From here you will be able to continue to hit backspace and move the cursor into the prompt's question and you must ctrl+c out of the flow.
### Expected behavior
you are unable to move out of the input field
### Reproduction steps
1. `amplify init -y`
2. `amplify add api` > REST API
3. follow the prompts until you get to "Restrict API Access"
4. select "Yes"
5. filter with "hello"
6. move the cursor to the left
7. press backspace a few times
8. observe you have broken out of the input field and are unable to proceed
```
✔ Restrict API access? (Y/n) · yes
✖ Restrict access by: · lu
🛑 There was an error adding the API resource
```
### GraphQL schema(s)
```graphql
# Put schemas below this line
```
### Project Identifier
_No response_
### Log output
```
# Put your logs below this line
```
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.