diff --git a/CHANGELOG.md b/CHANGELOG.md index cd457ebff..9fe1f7f87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Bug fixes +- [#330](https://github.com/alleslabs/celatone-frontend/pull/330) Fix proposal table component propagation + ## v1.0.4 ### Bug fixes diff --git a/src/lib/components/StopPropagationBox.tsx b/src/lib/components/StopPropagationBox.tsx new file mode 100644 index 000000000..738900ccd --- /dev/null +++ b/src/lib/components/StopPropagationBox.tsx @@ -0,0 +1,8 @@ +import { Box } from "@chakra-ui/react"; +import type { ReactNode } from "react"; + +export const StopPropagationBox = ({ children }: { children: ReactNode }) => ( + e.stopPropagation()} cursor="initial"> + {children} + +); diff --git a/src/lib/components/table/proposals/VotingEndTime.tsx b/src/lib/components/table/proposals/VotingEndTime.tsx index 52c657615..401b25e97 100644 --- a/src/lib/components/table/proposals/VotingEndTime.tsx +++ b/src/lib/components/table/proposals/VotingEndTime.tsx @@ -31,6 +31,8 @@ export const VotingEndTime = ({ fontSize: "12px", }, }} + onClick={(e) => e.stopPropagation()} + cursor="initial" >

{isDepositPeriod ? "Voting not started" : formatUTC(votingEndTime)}

diff --git a/src/lib/pages/proposals/components/ProposalTextCell.tsx b/src/lib/pages/proposals/components/ProposalTextCell.tsx index 644b831ca..84dffff72 100644 --- a/src/lib/pages/proposals/components/ProposalTextCell.tsx +++ b/src/lib/pages/proposals/components/ProposalTextCell.tsx @@ -41,6 +41,8 @@ export const ProposalTextCell = ({ maxW={showName ? undefined : "full"} onMouseOver={() => setIsHoverText(true)} onMouseOut={() => setIsHoverText(false)} + onClick={(e) => e.stopPropagation()} + cursor="initial" > - + + + - + + +