theigl commented on PR #1076: URL: https://github.com/apache/wicket/pull/1076#issuecomment-2597739543
> I see, I just put it into separate file for better readability and not to create unnecessary duplicated JS code on rendered page if there are multiple forms. I can still put it back (embed) it in `Form.java` if necessary. > > Or maybe create custom namespace like Wicket.Internal.Form or something like that? > > Edit: one more option. My suggestion would be to keep it as simple as possible. Get rid of the `form.js` file and all of the submit handling for `textarea` and `contenteditable` and only react to ENTER presses in `input` fields. Then everything is simple again and can be rendered inline. If custom ENTER handling for `textarea` is required, users can add their own simple behavior. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
