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

Go back to enumerating HTML5 child nodes when added, and adding event listeners to them #4508

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Nov 30, 2023

Identify the Bug or Feature request

Improves #4048

Description of the Change

This basically reverts PRs #4259 and #4285, though with the one difference that our event listener objects are recreated each time the page is unloaded. By keeping the same listeners for the duration of the page, we avoid the redundant registration that motived PR #4285. By recreating the listeners when leaving or switching pages, we avoid the peering issue that motivated #4259.

Possible Drawbacks

I break some else's framework in some other unknown way.

Documentation Notes

N/A

Release Notes

  • Fixed a bug that prevents HTML5 forms from being submitted in some cases where they were dynamically added to the DOM.

This change is Reviewable

HTML5 event listeners are now registered as before. However, to avoid peering issues in JavaFX <22, new listeners are
created each time the page is unloaded.
@kwvanderlinde kwvanderlinde force-pushed the bugfix/4048-now-there-are-missing-events branch from 1bb31e9 to 776e07d Compare November 30, 2023 00:19
@kwvanderlinde
Copy link
Collaborator Author

I'll move this off the release-1.14 branch if that's desirable

@cwisniew
Copy link
Member

I'll move this off the release-1.14 branch if that's desirable

1.14 is good :)

@cwisniew cwisniew merged commit d441fe3 into RPTools:release-1.14 Nov 30, 2023
4 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/4048-now-there-are-missing-events branch November 30, 2023 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

2 participants