nussknacker
nussknacker copied to clipboard
Enter on suggestion doesn't close suggestion menu if selected phrase is a prefix for different suggested phrase
Describe the bug Enter on suggestion doesn't close suggestion menu if selected phrase is a prefix for different suggested phrase. The only way to close menu with keyboard is to press ESC but it looses focus on field input.
To Reproduce
- Create two variables in context where one name is a prefix for second variable name eg. "error" and "errorResponse"
- In subsequent node start typing "e" and trigger suggestion (ctr+space)
- On suggestion menu select "error" variable and press enter - suggestion will be applied but suggestion menu won't be closed
https://user-images.githubusercontent.com/12599369/174556799-e1694c78-03a9-4b4e-a5b7-5a6a3fb6aa4f.mov
Environment (please complete the following information):
- OS: Mac os 12.4
- Nussknacker version 1.5.0-staging-2022-06-20-7885-d1349b2a0dde51eb420e4df17f5e00e243700871-SNAPSHOT
- Browser type and version: Chrome 102.0.5005.115 (Official Build) (arm64)