Skip to content

fix(collapse): add button type to prevent form submission #434#441

Merged
ly-tempel-bitweb merged 1 commit into
rcfrom
fix/434-add-button-type-for-collapse
May 18, 2026
Merged

fix(collapse): add button type to prevent form submission #434#441
ly-tempel-bitweb merged 1 commit into
rcfrom
fix/434-add-button-type-for-collapse

Conversation

@ly-tempel-bitweb
Copy link
Copy Markdown
Contributor

@ly-tempel-bitweb ly-tempel-bitweb commented May 15, 2026

Summary by CodeRabbit

  • Bug Fixes

    • Collapse button now explicitly sets the type attribute.
  • Tests

    • Added test assertion to verify the button type attribute is properly set.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 15, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1d9ffa86-0564-4216-ba28-0aec44f5cd22

📥 Commits

Reviewing files that changed from the base of the PR and between a575670 and be984dc.

📒 Files selected for processing (2)
  • tedi/components/buttons/collapse/collapse.component.html
  • tedi/components/buttons/collapse/collapse.component.spec.ts

📝 Walkthrough

Walkthrough

The collapse component button element is updated to explicitly set type="button" to prevent form submission when clicked. A corresponding test assertion verifies the button renders with the correct type attribute.

Changes

Collapse button type attribute

Layer / File(s) Summary
Button type declaration and test
tedi/components/buttons/collapse/collapse.component.html, tedi/components/buttons/collapse/collapse.component.spec.ts
The toggle button element declares type="button" to prevent submitting parent forms, and a new test case verifies the type attribute is set correctly.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title clearly summarizes the main change: adding a button type attribute to the collapse component to prevent form submission. The title is specific, concise, and directly related to the changeset modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/434-add-button-type-for-collapse

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ly-tempel-bitweb
Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 18, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ly-tempel-bitweb ly-tempel-bitweb merged commit 2e13aef into rc May 18, 2026
19 checks passed
@ly-tempel-bitweb ly-tempel-bitweb deleted the fix/434-add-button-type-for-collapse branch May 18, 2026 08:59
github-actions Bot pushed a commit that referenced this pull request May 18, 2026
# [6.4.0-rc.3](angular-6.4.0-rc.2...angular-6.4.0-rc.3) (2026-05-18)

### Bug Fixes

* **collapse:** add button type to prevent form submission [#434](#434) ([#441](#441)) ([2e13aef](2e13aef))

### Reverts

* **horizontal-stepper:** undo premature rc commits [#405](#405) ([#436](#436)) ([a575670](a575670))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants