Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(NcCheckboxRadioSwitch): move comment to have a single root node #5018

Merged
merged 1 commit into from Jan 2, 2024

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Jan 2, 2024

Having a comment directly in a template may cause issues in @vue/test-utils and other tools that consider such a component to have two root nodes in a fragment: a comment node and a span node.

Also, replaced null with undefined to remove minor typing issue.

No visual changes.

馃弫 Checklist

  • 鉀戯笍 Tests are included or are not applicable
  • 馃摌 Component documentation has been extended, updated or is not applicable

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme added technical debt feature: checkbox-radio-switch Related to the checkbox-radio-switch component labels Jan 2, 2024
@skjnldsv
Copy link
Contributor

skjnldsv commented Jan 2, 2024

Having a comment directly in a template may cause issues in @vue/test-utils and other tools that consider such a component to have two root nodes in a fragment: a comment node and a span node.

Does it??? Omg, I really thought it would be smart enough 馃檲
Thanks for catching this 馃槄

@skjnldsv skjnldsv merged commit c53309f into master Jan 2, 2024
15 checks passed
@skjnldsv skjnldsv deleted the refactor/NcCheckboxRadioSwitch--single-root-node branch January 2, 2024 11:33
@Pytal Pytal mentioned this pull request Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: checkbox-radio-switch Related to the checkbox-radio-switch component technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants