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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't fail if NcButton default slot contains not only text #3827

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

raimund-schluessler
Copy link
Contributor

This fixes a runtime warning if the default slot of NcButton does not contain text only, e.g. <p>Test</p>.

Closes #3824.

@raimund-schluessler raimund-schluessler added bug Something isn't working 3. to review Waiting for reviews feature: button labels Feb 27, 2023
@raimund-schluessler raimund-schluessler added this to the 7.8.0 milestone Feb 27, 2023
@raimund-schluessler raimund-schluessler changed the title Don't fail if NcButton default slot contains not only text Don't fail if NcButton default slot contains not only text Feb 27, 2023
@raimund-schluessler raimund-schluessler marked this pull request as ready for review February 27, 2023 11:48
Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

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

trim?.() seems like overdo for me, but Ok

@raimund-schluessler
Copy link
Contributor Author

trim?.() seems like overdo for me, but Ok

Yes, maybe. I don't have a strong opinion here, just wanted to play it safe 🙈🙂

@raimund-schluessler raimund-schluessler merged commit 70c9c60 into master Feb 27, 2023
@raimund-schluessler raimund-schluessler deleted the fix/3824/button-default-slot branch February 27, 2023 13:48
@julien-nc julien-nc mentioned this pull request Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working feature: button
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NcButton fails to compile without direct text content in default slot
3 participants