Skip to content

Commit 7777722

Browse files
committed
Remove implicit any from the PopButton component
1 parent 4ccd84c commit 7777722

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/frontend/PopButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ const PopButton: React.FC<NewPopProps> = ({ Button, Menu }) => {
3333
return;
3434
}
3535

36-
const handleClickOutside = (event) => {
36+
const handleClickOutside = (event: MouseEvent) => {
37+
if (!(event.target instanceof Node)) { return; }
38+
3739
if (referenceElement && referenceElement.contains(event.target)) {
3840
// They are clicking on the button, so let that go ahead and close us.
3941
return;

0 commit comments

Comments
 (0)