fix Object.assign try to write to read-only option.style (#5860)

This commit is contained in:
Krist Wongsuphasawat 2018-09-11 16:57:11 -07:00 committed by Grace Guo
parent 01212c3755
commit 962eb0860c
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export default function VirtualizedRendererWrap(renderer) {
<div
className={className.join(' ')}
key={key}
style={Object.assign(option.style || {}, style)}
style={{ ...(option.style || {}), ...style }}
title={option.title}
{...events}
>