You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re-implements click-to-activate pattern for Google Forms feedback iframe
to prevent Chrome from displaying "unsaved changes" warning when
navigating away from tutorial pages.
Changes:
- Replace direct iframe embed with clickable feedback image
- Load Google Forms iframe only when user clicks feedback button
- Use vanilla JavaScript for better compatibility (no jQuery dependency)
This restores the behavior from PR #1953 (2020) which was inadvertently
reverted in commit 7f5a336 (May 2024).
The direct iframe embedding causes Chrome to detect "unsaved form data"
even when users haven't interacted with the form, triggering navigation
warnings. The click-to-activate pattern prevents this by only loading
the form when explicitly requested.
Fixes#6312
<br>{{ locale['feedback-text-learner'] | default: "Did you use this material as a learner or student? Click the form below to leave feedback." }}<iclass="fas fa-hand-point-down"></i>
0 commit comments