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
{{ message }}
This repository was archived by the owner on Aug 18, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 18, 2026. It is now read-only.
WebPreview: Refactor into a functional component with hooks #4372
Conceptually unrelated to this PR, but this WebPreview class component could be a good candidate for refactoring into a functional component with hooks in a future PR, which would simplify lifecycle management (e.g., using useEffect for event listeners instead of componentDidUpdate/componentWillUnmount).
Escape-to-close doesn't fire once focus is inside the iframe, where users typically interact during preview. Keydown events on the parent document are not received by the iframe. Consider wiring a keydown handler to the iframe's contentWindow on load (guarded for same-origin).
Activity