mirror of
https://github.com/outline/outline.git
synced 2026-12-06 19:22:29 +03:00
Since the move to a concurrent React root the state update dispatched from animationend renders at default priority, and the passive effect that unmounts the lightbox runs in a later task. The browser can paint the intermediate commit, where the finished close animations have snapped back to their resting styles and the inline image has already been restored, so the lightbox briefly reappears fully open before disappearing. Keep the final keyframe of every closing animation with fill-mode forwards and keep the inline image hidden until the lightbox unmounts, so any frame painted between the animation ending and the teardown looks identical to the finished close. closes #13728 Claude-Session: https://claude.ai/code/session_01T4Pkj5VNWWu22pV113qqKS Co-authored-by: Claude <noreply@anthropic.com>