Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete tag with prefix not properly added on first attempt in Mix-Mode #1419

Open
3 tasks done
FreshDoktor opened this issue Nov 29, 2024 · 0 comments
Open
3 tasks done

Comments

@FreshDoktor
Copy link

FreshDoktor commented Nov 29, 2024

Prerequisites

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

💥 Demo Page

https://jsbin.com/vogabovodo/1/edit?js,console,output

Explanation

  • What is the expected behavior?
    When I select a tag from the dropdown with a mouse click, it should be present in the value of the change event.

  • What is happening instead?
    The tag is only present in the change event after the second attempt to add the tag by clicking in the dropdown.

  • Steps to reproduce with the demo

  1. Write $b into the input.
  2. Select banana from the dropdown with a mouse click.
  3. Delete the b and write it again to open the dropdown again.
  4. Select banana again.
  5. Check the event values in the console output. The output should contain two messages:
    "$b"
    "​[[{\"value\":\"banana\",\"prefix\":\"$\"}]]"
  • What i already tried
  1. Using another pattern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant