Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fixed tooltip icon and onclick event issues in <FormGroupLayoutLabel/> component.

## [2.13.1] - 2024-12-02

### Fixed
Expand Down
7 changes: 5 additions & 2 deletions src/lib/FormGroupLayoutLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const FormGroupLayoutLabel = <T extends FieldValues>(props: FormGroupLayoutLabel

return (
<>
<Label check={checkboxLayout || switchLayout} for={fieldId}>
<Label check={checkboxLayout || switchLayout} for={fieldId} onClick={(e) => e.stopPropagation()}>
{finalLabel}
{tooltip && (
<svg
Expand All @@ -42,7 +42,10 @@ const FormGroupLayoutLabel = <T extends FieldValues>(props: FormGroupLayoutLabel
stroke="currentColor"
id={`Tooltip-${fieldId}`}
className="tooltip--icon"
>
width="24"
height="24"
onClick={(e) => e.preventDefault()}
>
<path
strokeLinecap="round"
strokeLinejoin="round"
Expand Down