Skip to content

Commit 111c3de

Browse files
committed
fix: update changelog
1 parent 0d21952 commit 111c3de

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

packages/pluggableWidgets/checkbox-radio-selection-web/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- We added a missing validation alert.
12+
913
## [1.0.0] - 2025-08-25
1014

1115
### Added

packages/pluggableWidgets/checkbox-radio-selection-web/src/components/CheckboxSelection/CheckboxSelection.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import classNames from "classnames";
22
import { createElement, MouseEvent, ReactElement } from "react";
33
import { MultiSelector, SelectionBaseProps } from "../../helpers/types";
44
import { CaptionContent } from "../CaptionContent";
5+
import { ValidationAlert } from "@mendix/widget-plugin-component-kit/Alert";
56
import { Placeholder } from "../Placeholder";
67

78
export function CheckboxSelection({
@@ -18,6 +19,8 @@ export function CheckboxSelection({
1819
const isReadOnly = selector.readOnly;
1920
const name = groupName?.value ?? inputId;
2021

22+
const validation = selector.validation;
23+
2124
const handleChange = (optionId: string, checked: boolean): void => {
2225
if (!isReadOnly) {
2326
const newSelection = checked ? [...currentIds, optionId] : currentIds.filter(id => id !== optionId);
@@ -71,6 +74,7 @@ export function CheckboxSelection({
7174
);
7275
})}
7376
{options.length === 0 && <Placeholder noOptionsText={noOptionsText} />}
77+
{validation && <ValidationAlert>{validation}</ValidationAlert>}
7478
</div>
7579
);
7680
}

packages/pluggableWidgets/checkbox-radio-selection-web/src/components/RadioSelection/RadioSelection.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import classNames from "classnames";
22
import { ChangeEvent, createElement, MouseEvent, ReactElement } from "react";
33
import { SelectionBaseProps, SingleSelector } from "../../helpers/types";
44
import { CaptionContent } from "../CaptionContent";
5+
import { ValidationAlert } from "@mendix/widget-plugin-component-kit/Alert";
56
import { Placeholder } from "../Placeholder";
67
import { If } from "@mendix/widget-plugin-component-kit/If";
78

@@ -24,6 +25,8 @@ export function RadioSelection({
2425
const isReadOnly = selector.readOnly;
2526
const name = groupName?.value ?? inputId;
2627

28+
const validation = selector.validation;
29+
2730
const handleChange = (e: ChangeEvent<HTMLInputElement>): void => {
2831
if (isReadOnly) {
2932
return;
@@ -89,6 +92,7 @@ export function RadioSelection({
8992
);
9093
})}
9194
{options.length === 0 && <Placeholder noOptionsText={noOptionsText} />}
95+
{validation && <ValidationAlert>{validation}</ValidationAlert>}
9296
</div>
9397
);
9498
}

0 commit comments

Comments
 (0)