Skip to content

Autocomplete showsuggestions event provide inconsistent input value #308

@mems

Description

@mems

Expected Behavior

Logs (lower cased and trimmed):

""
" "
"te"
"test"
"test"
"test"

or (untouched):

""
" "
" TE"
" TEST"
" TEST "
" TEST "

Actual Behavior

Logs:

""
" "
"te"
"test"
"test"
" TEST "

Reproduce Scenario (including but not limited to)

Steps to Reproduce

  1. visit the playground (see below)
  2. focus the autocomplete field
  3. enter TEST (with surounding spaces)
  4. open browser devtools console

Browser name/version/os (ie Chrome Version 62.0.3202.94 (Official Build) (64-bit) MacOS)

  • Chrome 115.0.5790.56 64-bit Windows 10
  • Firefox 116.0b3 Windows 10

Coral Spectrum version

4.15.20

Sample Code that illustrates the problem (use the Playground if possible)

Playground example

Screenshots (if applicable)

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions