Fix props clobbering

Fixes #1755
This commit is contained in:
Tanner Linsley 2019-12-10 16:34:23 -07:00
parent 0c43e19091
commit 68fd89af3c
3 changed files with 11 additions and 12 deletions

View File

@ -1,13 +1,13 @@
{
"dist/index.js": {
"bundled": 108222,
"minified": 51353,
"gzipped": 13489
"bundled": 108184,
"minified": 51333,
"gzipped": 13486
},
"dist/index.es.js": {
"bundled": 107379,
"minified": 50603,
"gzipped": 13336,
"bundled": 107341,
"minified": 50583,
"gzipped": 13333,
"treeshaked": {
"rollup": {
"code": 80,

View File

@ -1,6 +1,7 @@
## 7.0.0-rc.8
- Fix an issue where `useResizeColumns` would crash when using the resizer prop getter
- Fix an issue where `useBlockLayout` was clobbering props sent to headers
## 7.0.0-rc.7

View File

@ -192,12 +192,10 @@ const useInstanceBeforeDimensions = instance => {
state: { columnResizing },
} = instance
getHeaderProps.push(() => {
return {
style: {
position: 'relative',
},
}
getHeaderProps.push({
style: {
position: 'relative',
},
})
const getInstance = useGetLatest(instance)