Skip to content

Commit cee7908

Browse files
authored
Fix: Compilation issue Element not defined (#81)
Thanks @aburgel
1 parent 3a84730 commit cee7908

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ui/ContextMenu/items/EmojiListItems.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ EmojiListItems.propTypes = {
147147
]).isRequired,
148148
parentRef: PropTypes.oneOfType([
149149
PropTypes.func,
150-
PropTypes.shape({ current: PropTypes.instanceOf(Element) }),
150+
PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }),
151151
]).isRequired,
152152
parentContainRef: PropTypes.oneOfType([
153153
PropTypes.func,
154-
PropTypes.shape({ current: PropTypes.instanceOf(Element) }),
154+
PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }),
155155
]).isRequired,
156156
spaceFromTrigger: PropTypes.shape({
157157
x: PropTypes.number,

src/ui/ContextMenu/items/MenuItems.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ MenuItems.propTypes = {
140140
// https://stackoverflow.com/a/51127130
141141
parentRef: PropTypes.oneOfType([
142142
PropTypes.func,
143-
PropTypes.shape({ current: PropTypes.instanceOf(Element) }),
143+
PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }),
144144
]).isRequired,
145145
parentContainRef: PropTypes.oneOfType([
146146
PropTypes.func,
147-
PropTypes.shape({ current: PropTypes.instanceOf(Element) }),
147+
PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }),
148148
]).isRequired,
149149
openLeft: PropTypes.bool,
150150
};

0 commit comments

Comments
 (0)