Skip to content

Enter on suggestion doesn't close suggestion menu if selected phrase is a prefix for different suggested phrase #3177

@raphaelsolarski

Description

@raphaelsolarski

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

  1. Create two variables in context where one name is a prefix for second variable name eg. "error" and "errorResponse"
  2. In subsequent node start typing "e" and trigger suggestion (ctr+space)
  3. On suggestion menu select "error" variable and press enter - suggestion will be applied but suggestion menu won't be closed
Screen.Recording.2022-06-20.at.10.03.31.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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnot on roadmapNussknacker development team does not plan to work on that in foreseeable futureui

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions