mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
fix shrink parent node width
This commit is contained in:
parent
1ddeb72dca
commit
851aa4a912
@ -102,7 +102,7 @@ const TextNode: React.FC<TextNodeProps> = ({
|
||||
};
|
||||
|
||||
function propsAreEqual(prev: TextNodeProps, next: TextNodeProps) {
|
||||
return prev.value === next.value;
|
||||
return prev.value === next.value && prev.width === next.width;
|
||||
}
|
||||
|
||||
export default React.memo(TextNode, propsAreEqual);
|
||||
|
Loading…
x
Reference in New Issue
Block a user