Skip to content

Commit

Permalink
Merge pull request #94 from terraswap/hotfix/feeCombobox
Browse files Browse the repository at this point in the history
hotfix: FeeCombobox
  • Loading branch information
JoowonYun authored May 9, 2022
2 parents 5d9d79f + 50978c0 commit ff1d071
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/forms/FeeCombobox.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "src/styles/mixins.module";

.body {
user-select: none;
@include flex;
justify-content: flex-end;
align-items: unset;
Expand Down
4 changes: 3 additions & 1 deletion src/forms/FeeCombobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ const FeeCombobox: FC<PropsWithChildren<Props>> = ({ selected, onSelect }) => {
setIsOpen(false)
}
if (isOpen) {
window.addEventListener("click", handleWindowClick)
setTimeout(() => {
window.addEventListener("click", handleWindowClick)
}, 10)
}
return () => {
window.removeEventListener("click", handleWindowClick)
Expand Down

0 comments on commit ff1d071

Please sign in to comment.