Skip to content
Open
Show file tree
Hide file tree
Changes from 6 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 @@ -7,6 +7,11 @@ 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
6 changes: 4 additions & 2 deletions src/lib/FormGroupLayoutLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,19 @@ 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}
strokeWidth="1.5"
Comment thread
Harsh517-tech415 marked this conversation as resolved.
Outdated
stroke="currentColor"
id={`Tooltip-${fieldId}`}
className="tooltip--icon"
width="24"
Comment thread
Harsh517-tech415 marked this conversation as resolved.
height="24"
>
<path
strokeLinecap="round"
Expand Down