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

[Dropdown] Escaped element gets duplicated #997

Closed
johannes85 opened this issue Sep 4, 2019 · 3 comments
Closed

[Dropdown] Escaped element gets duplicated #997

johannes85 opened this issue Sep 4, 2019 · 3 comments
Labels
lang/javascript Anything involving JavaScript type/bug Any issue which is a bug or PR which fixes a bug
Milestone

Comments

@johannes85
Copy link

Bug Report

When I add a new element with characters which will be html escaped, it wil get duplicated under certain conditions.

I think this is intruduced with: f7c24ac

Steps to reproduce

  1. Open https://jsfiddle.net/yzvmobrw/1/
  2. Add the following value:
  3. Press enter
  4. Click in the white area under the element

Expected result

The new element should be added.

Actual result

The new element will be added twice.

Testcase

https://jsfiddle.net/yzvmobrw/1/

Screenshot (when possible)

dropdown

Version

2.7.8

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/javascript Anything involving JavaScript labels Sep 4, 2019
@lubber-de
Copy link
Member

Interesting, it does not occur when using "tab" instead of "enter" 🤔

@johannes85
Copy link
Author

And it also isn't occuring if you don't press enter and simply just klick outside of the box.

@y0hami y0hami added the Hacktoberfest Issues for Hacktoberfest! label Oct 4, 2019
@aexvir
Copy link
Contributor

aexvir commented Oct 14, 2019

👋 Hi there! I'd like to take this one

aexvir added a commit to aexvir/Fomantic-UI that referenced this issue Oct 17, 2019
aexvir added a commit to aexvir/Fomantic-UI that referenced this issue Oct 17, 2019
@lubber-de lubber-de added the state/has-pr An issue which has a related PR open label Oct 17, 2019
@lubber-de lubber-de added this to the 2.8.0 milestone Oct 17, 2019
@y0hami y0hami added tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build and removed state/has-pr An issue which has a related PR open Hacktoberfest Issues for Hacktoberfest! labels Oct 18, 2019
@y0hami y0hami closed this as completed in eac179d Nov 14, 2019
@y0hami y0hami removed the tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build label Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/javascript Anything involving JavaScript type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

No branches or pull requests

4 participants