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

Initialize PowermailCond after "pageshow" event #101

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

pixeldesu
Copy link
Member

Instead of initializing powermail_cond right as the file is loaded, we now specifically wait for the pageshow browser event.

This ensures that we have whatever value is in the browsers bfcache (backwards/forwards cache) and properly can initially apply conditional actions and hide/derequire fields that were previously filled out.

This fixes several (different) issues that have been reported based on bfcache behaviour.

Fixes #99
Fixes #95

@tinzog tinzog merged commit 8fe4310 into typo3-12 Jan 23, 2025
6 checks passed
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.

Hidden fields remain populated All conditionial fields shown when powermail captcha filled out wrong
2 participants