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

remove the submit javascript call from the form to avoid Enter event … #524

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

italovalcy
Copy link

Closes #518

Summary

See updated changelog file for summary of the changes. Basically, although the form on mef_eline is trying to prevent premature submit upon Enter keyboard events, the submit event still leaks to the original form and ended up calling the @click event will later send the premature request to MEF. After some unsuccessfully tries, I follow one suggestion to move the submit @click event caller to outside of the form and it worked. Looking into other usages of k-input-auto (sdntrace, sdntrace_cp and pathfinder), they don't even have forms (which makes sense, since we are handling all process on js).

Local Tests

Tests after fixing Issue #518 and also fixing kytos-ng/ui#90

Oct-07-2024 05-16-56

End-to-End Tests

Does not apply.

Copy link
Member

@viniarck viniarck left a comment

Choose a reason for hiding this comment

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

Much appreciated this fix @italovalcy. Let's ship it.

Also including @rmotitsuki as a reviewer in case he wants to review too.

Copy link

@rmotitsuki rmotitsuki left a comment

Choose a reason for hiding this comment

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

LGTM ! Great fix.

@italovalcy italovalcy merged commit b75b53b into master Oct 8, 2024
2 checks passed
@italovalcy italovalcy deleted the fix/issue_518 branch October 8, 2024 14:43
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

Successfully merging this pull request may close these issues.

UI: Bug when creating an EVC -- using the arrow keys plus enter leads to the EVC being prematurely requested
3 participants