Blazor.SVGEditor icon indicating copy to clipboard operation
Blazor.SVGEditor copied to clipboard

SVGEditor code in a server-side app : System.InvalidOperationException: The current thread is not associated with the Dispatcher

Open pcarret opened this issue 3 years ago • 1 comments

When using the SVGEditor code in a server-side app and editing the svg as text in textarea

"System.InvalidOperationException: The current thread is not associated with the Dispatcher" <SVG @ref=SVG1 Input=@Input1 InputUpdated="(string s) => { Input1 = s; StateHasChanged(); }" />

After reading this <SVG @ref=SVG1 Input=@Input1 InputUpdated="(string s) => { Input1 = s; InvokeAsync(StateHasChanged); }" /> Solve the issue

pcarret avatar Nov 16 '21 13:11 pcarret

Nice.

I will try to add a full Blazor Server sample with this addtion. :)

KristofferStrube avatar Nov 16 '21 13:11 KristofferStrube

Hey @pcarret. Long time since we talked last. I just wanted to share that I have added a Blazor Server example to prepare to release this to NuGet. Hope you are doing well.

KristofferStrube avatar Jul 16 '23 11:07 KristofferStrube