From 55b7129eb117aaf66c0c835d89deb74c27d59446 Mon Sep 17 00:00:00 2001 From: Anton Korzunov Date: Tue, 12 Mar 2019 08:21:18 +1100 Subject: [PATCH] fix: simplify proptype for shards, fixes #59 --- src/Lock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lock.js b/src/Lock.js index 2441f7d..3049a99 100644 --- a/src/Lock.js +++ b/src/Lock.js @@ -144,7 +144,7 @@ FocusLock.propTypes = { className: PropTypes.string, whiteList: PropTypes.func, - shards: PropTypes.arrayOf(PropTypes.shape({ current: PropTypes.instanceOf(Element) })), + shards: PropTypes.arrayOf(PropTypes.any), as: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.object]), lockProps: PropTypes.object,