From 61503c0bc33a2eb4260cc18208139750ad98128a Mon Sep 17 00:00:00 2001 From: Silviu Alexandu Avram Date: Fri, 26 Jul 2024 10:25:08 +0300 Subject: [PATCH] fix(propTypes): allow null for activeElement --- src/downshift.js | 2 +- src/hooks/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/downshift.js b/src/downshift.js index 49bdda0f..f1dd6565 100644 --- a/src/downshift.js +++ b/src/downshift.js @@ -57,7 +57,7 @@ class Downshift extends Component { document: PropTypes.shape({ createElement: PropTypes.func.isRequired, getElementById: PropTypes.func.isRequired, - activeElement: PropTypes.any.isRequired, + activeElement: PropTypes.any, body: PropTypes.any.isRequired, }).isRequired, Node: PropTypes.func.isRequired, diff --git a/src/hooks/utils.js b/src/hooks/utils.js index defceeb4..be220630 100644 --- a/src/hooks/utils.js +++ b/src/hooks/utils.js @@ -690,7 +690,7 @@ const commonPropTypes = { document: PropTypes.shape({ createElement: PropTypes.func.isRequired, getElementById: PropTypes.func.isRequired, - activeElement: PropTypes.any.isRequired, + activeElement: PropTypes.any, body: PropTypes.any.isRequired, }).isRequired, Node: PropTypes.func.isRequired,