Skip to content

Commit

Permalink
Make entire cancel button area clickable (#1473)
Browse files Browse the repository at this point in the history
The Cancel button on a survey right now attaches the click handler to the tiny X in the close button.
This PR makes the entire Circle and the X inside it clickable.
  • Loading branch information
Phanatic authored Oct 17, 2024
1 parent 387d96e commit ba9179c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/surveys/components/QuestionHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function Cancel({ onClick }: { onClick: () => void }) {
const { isPreviewMode } = useContext(SurveyContext)

return (
<div className="cancel-btn-wrapper">
<div className="cancel-btn-wrapper" onClick={onClick} disabled={isPreviewMode}>
<button className="form-cancel" onClick={onClick} disabled={isPreviewMode}>
{cancelSVG}
</button>
Expand Down

0 comments on commit ba9179c

Please sign in to comment.