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
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Fixed

- We fixed an issue where checkboxes remained visible in read-only "Content only" mode. Now only selected items are displayed as text, consistent with radio button behavior.

## [1.1.1] - 2026-02-24

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { getValidationErrorId } from "../../helpers/utils";
import { useWrapperProps } from "../../hooks/useWrapperProps";
import { CaptionContent } from "../CaptionContent";
import { ValidationAlert } from "@mendix/widget-plugin-component-kit/Alert";

Check warning on line 7 in packages/pluggableWidgets/checkbox-radio-selection-web/src/components/CheckboxSelection/CheckboxSelection.tsx

View workflow job for this annotation

GitHub Actions / Run code quality check

`@mendix/widget-plugin-component-kit/Alert` import should occur before import of `../../helpers/types`
import { Placeholder } from "../Placeholder";

export function CheckboxSelection({
Expand Down Expand Up @@ -48,6 +48,9 @@
{options.map((optionId, index) => {
const isSelected = currentIds.includes(optionId);
const checkboxId = `${inputId}-checkbox-${index}`;
if (isReadOnly && !isSelected && readOnlyStyle === "text") {
return null;
}

return (
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

&-readonly {
&.widget-checkbox-radio-selection-readonly-text {
.radio-item {
.radio-item,
.checkbox-item {
display: none;

&.widget-checkbox-radio-selection-item-selected {
Expand Down
Loading