-
Notifications
You must be signed in to change notification settings - Fork 23k
Add a form wrapper for better UX #41304
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
Conversation
|
Preview URLs (comment last updated: 2025-10-07 15:50:21) |
dipikabh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the improvements!
I've added a few suggestions for you to consider
files/en-us/learn_web_development/core/scripting/dom_scripting/index.md
Outdated
Show resolved
Hide resolved
files/en-us/learn_web_development/core/scripting/dom_scripting/index.md
Outdated
Show resolved
Hide resolved
files/en-us/learn_web_development/core/scripting/dom_scripting/index.md
Outdated
Show resolved
Hide resolved
files/en-us/learn_web_development/core/scripting/dom_scripting/index.md
Outdated
Show resolved
Hide resolved
files/en-us/learn_web_development/core/scripting/dom_scripting/index.md
Outdated
Show resolved
Hide resolved
files/en-us/learn_web_development/core/scripting/dom_scripting/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Dipika Bhattacharya <[email protected]>
|
This pull request has merge conflicts that must be resolved before it can be merged. |
Co-authored-by: Dipika Bhattacharya <[email protected]>
Co-authored-by: Dipika Bhattacharya <[email protected]>
Co-authored-by: Dipika Bhattacharya <[email protected]>
Co-authored-by: Dipika Bhattacharya <[email protected]>
Co-authored-by: Dipika Bhattacharya <[email protected]>
dipikabh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
### Description - Adds `<form>` wrapper and `preventDefault` handler - Changes the inline demo and the step-by-step guide to match ### Motivation To have a better UX: pressing Enter in the field now adds an item. Based on the original PR mdn/content#40201 ### Related issues and pull requests - [x] mdn/content#41304⚠️ Should be merged together.
Description
<form>wrapper andpreventDefaulthandlerMotivation
To have a better UX: pressing Enter in the field now adds an item.
Based on the original PR #40201
Related issues and pull requests