Dragged tags shows incorrect text
See original GitHub issueI’m submitting a … (check one with “x”)
[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request/question
Current behavior When dragging tags, the dragged tag is being shown as the incorrect one. Eg. if you drag “Foo” the dragged tag will show “Bar”, but when you drop it, it actually moved “Foo”. It seems that the dragged one always has the text of the tag to the right of the selected one, except when dragging the last tag in a list in which case it shows the correct tag.
Expected behavior The dragged tag should always show the correct text.
Minimal reproduction of the problem with instructions (if applicable) The issue is reproducible by dragging the “C#” tag under “Drag and drop” on the demo site: http://www.buompris.co/ng2-tag-input. The dragged tag will show as “Java” and not “C#” as expected.
What do you use to build your app: angular-cli 1.1.1 (webpack) Angular version: 4.1.3 ng2-tag-input version: 1.3.3 Browser: Tested in Chrome and Firefox on Linux
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
WiIl be fixed by https://github.com/Gbuomprisco/ng2-tag-input/pull/462
@Gbuomprisco Just cloned and played a bit with it. Can reproduce. See following examples:
Case 1
Initial
Case 2
Initial
Notes
Console.log(storedElement) @ onDragStarted shows that storedElement is correct (dragging “a” actually dumps “a”)