mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 10:00:50 +00:00
Reset background color on media modal (#36782)
This commit is contained in:
parent
8fb06ea0ca
commit
882afd7748
|
|
@ -116,6 +116,9 @@ export const MediaModal: FC<MediaModalProps> = forwardRef<
|
|||
onChangeBackgroundColor(backgroundColor);
|
||||
}
|
||||
}
|
||||
return () => {
|
||||
onChangeBackgroundColor(null);
|
||||
};
|
||||
}, [currentMedia, onChangeBackgroundColor]);
|
||||
|
||||
const [viewportDimensions, setViewportDimensions] = useState<{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user