You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TagInput component adds two items instead of one when pressing Enter: both the search term and a completion. This occurs when both autocomplete and addNew options are enabled. The video below illustrates the problem:
Screen.Recording.2024-06-04.at.16.26.52.mov
Steps to reproduce
Recreate the demo for TagInput with autocomplete from the docs (link). I did this by using the official Vue template, installing Buefy, and copying the code from the Buefy docs. Since CodePen is not working, I am including the code I used at the end of this issue description.
Now, we are ready to reproduce the issue:
Open the demo.
Enable "Allow new tags."
Start typing a partial name, such as "An."
When the suggestions appear, focus on one of the suggestions using the arrow keys.
Press Enter to accept the suggestion.
Expected behavior
Only the completion should be added as a tag.
Actual behavior
Both the completion and the search text are added as tags. For example, if you type "An" and accept the suggestion "Andrew," both "An" and "Andrew" are added as tags.
Overview of the problem
Buefy version: buefy-next 0.1.3
Vuejs version: 3.4.27
OS/Browser: Windows+Chrome, macOS+Firefox,
Description
The
TagInput
component adds two items instead of one when pressing Enter: both the search term and a completion. This occurs when bothautocomplete
andaddNew
options are enabled. The video below illustrates the problem:Screen.Recording.2024-06-04.at.16.26.52.mov
Steps to reproduce
Recreate the demo for
TagInput
with autocomplete from the docs (link). I did this by using the official Vue template, installing Buefy, and copying the code from the Buefy docs. Since CodePen is not working, I am including the code I used at the end of this issue description.Now, we are ready to reproduce the issue:
Expected behavior
Only the completion should be added as a tag.
Actual behavior
Both the completion and the search text are added as tags. For example, if you type "An" and accept the suggestion "Andrew," both "An" and "Andrew" are added as tags.
Code
Here is the content of
App.vue
:src/App.vue
:The text was updated successfully, but these errors were encountered: