We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
currentTarget
1 parent 86928e5 commit 0bcad3cCopy full SHA for 0bcad3c
2 files changed
src/components/ItemDetailsDialog/ItemImageViewer/ImageControls.tsx
@@ -125,7 +125,7 @@ export default function ImageControls({
125
className="ml-1"
126
title="Upload image..."
127
onClick={(e) => {
128
- const target = e.target as HTMLElement
+ const target = e.currentTarget
129
setImageUploadPopupPosition([
130
target.offsetLeft + target.clientWidth / 2,
131
target.offsetTop + target.clientHeight / 2,
src/components/OperationsMenu/OperationsMenu.tsx
@@ -46,7 +46,7 @@ export function OperationsMenu({
46
47
e.preventDefault()
48
setShowPopup(true)
49
50
setPopupPosition([
51
52
0 commit comments