Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [2.13.2] - 2024-12-10
Comment thread
Harsh517-tech415 marked this conversation as resolved.
Outdated

### Fixed

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

## [2.13.1] - 2024-12-02

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

return (
<>
<Label check={checkboxLayout || switchLayout} for={fieldId}>
<Label check={checkboxLayout || switchLayout} for={fieldId} style={{ display: "flex", gap: 1 }} onClick={(e) => e.stopPropagation()}>
Comment thread
Harsh517-tech415 marked this conversation as resolved.
Outdated
{finalLabel}
{tooltip && (
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
strokeWidth={1.5}
stroke="currentColor"
id={`Tooltip-${fieldId}`}
className="tooltip--icon"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"
/>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
strokeWidth="1.5"
stroke="currentColor"
id={`Tooltip-${fieldId}`}
className="tooltip--icon"
width="24"
height="24"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"
/>
</svg>
)}
</Label>
{tooltip && (
Expand Down