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] Suppress events on enter key with multiple allowAdditions #250

Merged

Conversation

lubber-de
Copy link
Member

Description

The event bubbling was not suppressed when the enter key was used on new entries in a dropdown box. In the given SUI Issue this resulted in forwarding the enter-key event to the submit button of a form when that was the next form component

Screenshot

Look at the captured console at the bottom of each screenshot. I added a form-submit handler to write 'SUBMIT' to the console whenever a form submission was triggered. Before the fix, this was happening on every pressing of the enter-key. After that this only happens when you click on the submit button

Before

dd_addition_multiple_enter_bad

After

dd_addition_multiple_enter_good

Closes

Semantic-Org/Semantic-UI#6672

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/javascript Anything involving JavaScript state/awaiting-reviews Pull requests which are waiting for reviews labels Nov 15, 2018
@lubber-de lubber-de added this to the 2.7.x milestone Nov 15, 2018
@lubber-de lubber-de self-assigned this Nov 15, 2018
Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lubber-de lubber-de added the tag/sui-issue Taken from an existing Issue/PR of SUI label Nov 15, 2018
Copy link
Member

@ColinFrick ColinFrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@y0hami y0hami merged commit 52d7502 into fomantic:beta Nov 16, 2018
@lubber-de lubber-de deleted the fix/6672/dropdown_addition_multiple_enter branch November 16, 2018 13:46
@lubber-de lubber-de removed the state/awaiting-reviews Pull requests which are waiting for reviews label Nov 20, 2018
@lubber-de lubber-de modified the milestones: 2.7.x, 2.7.0 Nov 28, 2018
This was referenced Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/javascript Anything involving JavaScript tag/sui-issue Taken from an existing Issue/PR of SUI type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants