added undefined to the unspecific getRowProps fn to retain the param order (#1392)

This commit is contained in:
Domenuch
2019-07-15 13:27:13 -04:00
committed by Tanner Linsley
parent bc3ea07c3e
commit 14e931548a

View File

@@ -199,7 +199,7 @@ export const useTable = (props, ...plugins) => {
mergeProps(applyPropHooks(api.hooks.getTableProps, api), userProps)
api.getRowProps = userProps =>
mergeProps(applyPropHooks(api.hooks.getRowProps, api), userProps)
mergeProps(applyPropHooks(api.hooks.getRowProps, undefined, api), userProps)
return api
}