From 5b410d0949c65ce765ea5356d4e87eeac9b4bfd7 Mon Sep 17 00:00:00 2001 From: Proudust Date: Tue, 27 Sep 2022 23:25:11 +0900 Subject: [PATCH] fix: `npm run docz:build` error --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index d74aef8..cf6e582 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -105,7 +105,7 @@ CSVReader.propTypes = { inputId: PropTypes.string, inputName: PropTypes.string, inputStyle: PropTypes.object, - inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.exact({ current: PropTypes.instanceOf(HTMLInputElement) })]), + inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.exact({ current: PropTypes.any })]), label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]), onError: PropTypes.func, onFileLoaded: PropTypes.func.isRequired,