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

docs: Add limitation for rendering a RenderFragment #1288

Merged
merged 2 commits into from
Nov 25, 2023

Conversation

linkdotnet
Copy link
Collaborator

Follow-Up to #1282

@egil
Copy link
Member

egil commented Nov 22, 2023

Isnt this a bug, that is, the behavior described here? Surly triggering an event handler causes the a render?

@linkdotnet
Copy link
Collaborator Author

It isn't at the moment - still it would be a limitation.

Even such a test does not pass:

[Fact]
public void ThatIsMyCoolTest()
{
	var output = string.Empty;
	var cut = Render(@<button @onclick='@(() => output = "Success")'>@output</button>);
	
	cut.Find("button").Click();
	
	cut.Find("button").TextContent.ShouldBe("Success");
}

But yeah - let's gather some examples and open a bug

@linkdotnet
Copy link
Collaborator Author

Closes #1289

@linkdotnet linkdotnet force-pushed the docs-limitations-renderfragment branch from ddba7bc to f21db79 Compare November 24, 2023 14:52
@egil egil merged commit e4befc2 into stable Nov 25, 2023
4 checks passed
@egil egil deleted the docs-limitations-renderfragment branch November 25, 2023 11:45
egil added a commit that referenced this pull request Nov 25, 2023
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.

2 participants