Skip to content

fix issues with checkbox field#500

Merged
Sam Beveridge (00salmon) merged 5 commits into
masterfrom
fix-checkbox
May 25, 2026
Merged

fix issues with checkbox field#500
Sam Beveridge (00salmon) merged 5 commits into
masterfrom
fix-checkbox

Conversation

@00salmon

Copy link
Copy Markdown
Contributor

Description of the change

Checkbox was not correctly getting its value pulled due to being in the shadow dom, and the required flag was backwards

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation or Development tools (readme, specs, tests, code formatting)

Links

  • Jira issue number: (PUT IT HERE)
  • Process.st launch checklist: (PUT IT HERE)

Checklists

Development

  • Prettier was run (if applicable)
  • The behaviour changes in the pull request are covered by specs
  • All tests related to the changed code pass in development

Paperwork

  • This pull request has a descriptive title and information useful to a reviewer
  • This pull request has a Jira number
  • This pull request has a Process.st launch checklist

Code review

  • Changes have been reviewed by at least one other engineer
  • Security impacts of this change have been considered

Copilot AI review requested due to automatic review settings May 25, 2026 21:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issues with the <sqm-checkbox-field> registration form integration by exposing the checkbox control outside of Shadow DOM and correcting the logic that marks the checkbox as required when it’s not optional.

Changes:

  • Disabled Shadow DOM rendering for <sqm-checkbox-field> to allow the underlying form control to be discovered/serialized by the parent form.
  • Fixed the required attribute logic so non-optional checkboxes are actually required.
  • Corrected a UI label typo (“lext” → “text”) and updated generated typings/changelog text accordingly.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

File Description
packages/mint-components/src/components/sqm-checkbox-field/sqm-checkbox-field.tsx Turns off Shadow DOM for the checkbox field and fixes a doc typo.
packages/mint-components/src/components/sqm-checkbox-field/sqm-checkbox-field-view.tsx Corrects required attribute behavior for non-optional checkboxes.
packages/mint-components/src/components.d.ts Prop docs typo fix propagated into generated typings.
packages/mint-components/CHANGELOG.md Adds a 2.1.12 entry and updates compare/tag links (but version is not bumped in package.json).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/mint-components/CHANGELOG.md Outdated
Comment thread packages/mint-components/CHANGELOG.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 25, 2026 21:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

Comment thread packages/mint-components/.changeset/gold-items-start.md

@AndiLuo AndiLuo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@00salmon
Sam Beveridge (00salmon) merged commit ff355bf into master May 25, 2026
10 of 11 checks passed
@00salmon
Sam Beveridge (00salmon) deleted the fix-checkbox branch May 25, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants