Skip to content

fix(checkbox, radio): NO-JIRA description slot not being reactive#725

Merged
Nina Repetto (ninamarina) merged 1 commit intostagingfrom
fix/checkbox-radio
Apr 21, 2025
Merged

fix(checkbox, radio): NO-JIRA description slot not being reactive#725
Nina Repetto (ninamarina) merged 1 commit intostagingfrom
fix/checkbox-radio

Conversation

@ninamarina
Copy link
Copy Markdown
Contributor

@ninamarina Nina Repetto (ninamarina) commented Apr 21, 2025

fix(checkbox, radio): NO-JIRA description slot not being reactive

Obligatory GIF (super important!)

Obligatory GIF

🛠️ Type Of Change

These types will increment the version number on release:

  • Fix
  • Feature
  • Performance Improvement
  • Refactor

📖 Jira Ticket

No jira, we found out about this with a test failing in Firespotter: https://github.com/dialpad/firespotter/pull/56110

📖 Description

Since $slots isn't reactive, it doesn't re render the component when passing the description slot. Moving the logic back inline instead of in a computed property makes it work again.

@github-actions
Copy link
Copy Markdown
Contributor

Please add either the visual-test-ready or no-visual-test label to this PR depending on whether you want to run visual tests or not.
It is recommended to run visual tests if your PR changes any UI. ‼️

@ninamarina Nina Repetto (ninamarina) marked this pull request as draft April 21, 2025 19:36
Copy link
Copy Markdown
Contributor

@braddialpad Brad Paugh (braddialpad) left a comment

Choose a reason for hiding this comment

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

Oh yeah, makes sense because $slots isn't reactive. Good fix thanks!

@ninamarina Nina Repetto (ninamarina) marked this pull request as ready for review April 21, 2025 19:38
@github-actions
Copy link
Copy Markdown
Contributor

✔️ Deploy previews ready!
😎 Dialtone preview: https://dialtone.dialpad.com/deploy-previews/pr-725/
😎 Dialtone-vue 2 preview: https://dialtone.dialpad.com/vue/deploy-previews/pr-725/
😎 Dialtone-vue 3 the preview: https://dialtone.dialpad.com/vue3/deploy-previews/pr-725/

@ninamarina Nina Repetto (ninamarina) added the no-visual-test Add this tag when the PR does not need visual testing label Apr 21, 2025
@ninamarina Nina Repetto (ninamarina) merged commit 7a29e67 into staging Apr 21, 2025
20 checks passed
@ninamarina Nina Repetto (ninamarina) deleted the fix/checkbox-radio branch April 21, 2025 19:44
Julio Ortega (juliodialpad) pushed a commit that referenced this pull request Apr 21, 2025
## [2.184.1](dialtone-vue2/v2.184.0...dialtone-vue2/v2.184.1) (2025-04-21)

### Bug Fixes

* **Checkbox, Radio:** NO-JIRA description slot not being reactive ([#725](#725)) ([7a29e67](7a29e67))
Julio Ortega (juliodialpad) pushed a commit that referenced this pull request Apr 21, 2025
## [3.177.1](dialtone-vue3/v3.177.0...dialtone-vue3/v3.177.1) (2025-04-21)

### Bug Fixes

* **Checkbox, Radio:** NO-JIRA description slot not being reactive ([#725](#725)) ([7a29e67](7a29e67))
Julio Ortega (juliodialpad) pushed a commit that referenced this pull request Apr 21, 2025
## [9.111.1](dialtone/v9.111.0...dialtone/v9.111.1) (2025-04-21)

### Bug Fixes

* **Checkbox, Radio:** NO-JIRA description slot not being reactive ([#725](#725)) ([7a29e67](7a29e67))

### Documentation

* DLT-2491 update figma urls ([#720](#720)) ([430d6c2](430d6c2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-visual-test Add this tag when the PR does not need visual testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants