diff --git a/src/ui/ContextMenu/items/EmojiListItems.jsx b/src/ui/ContextMenu/items/EmojiListItems.jsx index 3c6d80777..5d27fe776 100644 --- a/src/ui/ContextMenu/items/EmojiListItems.jsx +++ b/src/ui/ContextMenu/items/EmojiListItems.jsx @@ -147,11 +147,11 @@ EmojiListItems.propTypes = { ]).isRequired, parentRef: PropTypes.oneOfType([ PropTypes.func, - PropTypes.shape({ current: PropTypes.instanceOf(Element) }), + PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }), ]).isRequired, parentContainRef: PropTypes.oneOfType([ PropTypes.func, - PropTypes.shape({ current: PropTypes.instanceOf(Element) }), + PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }), ]).isRequired, spaceFromTrigger: PropTypes.shape({ x: PropTypes.number, diff --git a/src/ui/ContextMenu/items/MenuItems.jsx b/src/ui/ContextMenu/items/MenuItems.jsx index c68ee1f75..c502ff8f0 100644 --- a/src/ui/ContextMenu/items/MenuItems.jsx +++ b/src/ui/ContextMenu/items/MenuItems.jsx @@ -140,11 +140,11 @@ MenuItems.propTypes = { // https://stackoverflow.com/a/51127130 parentRef: PropTypes.oneOfType([ PropTypes.func, - PropTypes.shape({ current: PropTypes.instanceOf(Element) }), + PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }), ]).isRequired, parentContainRef: PropTypes.oneOfType([ PropTypes.func, - PropTypes.shape({ current: PropTypes.instanceOf(Element) }), + PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }), ]).isRequired, openLeft: PropTypes.bool, };