mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 07:49:29 +00:00
Reset background color on media modal (#36782)
This commit is contained in:
@@ -116,6 +116,9 @@ export const MediaModal: FC<MediaModalProps> = forwardRef<
|
||||
onChangeBackgroundColor(backgroundColor);
|
||||
}
|
||||
}
|
||||
return () => {
|
||||
onChangeBackgroundColor(null);
|
||||
};
|
||||
}, [currentMedia, onChangeBackgroundColor]);
|
||||
|
||||
const [viewportDimensions, setViewportDimensions] = useState<{
|
||||
|
||||
Reference in New Issue
Block a user