Inside a razor-file in a @code { }, I'm trying to pass in some HTML content inside a RenderFragment-property as it shows in the 2 images above. The errors [CS1662, CS0027, CS0236] only appears when I try to assign a handler to an event. However, the code compiles and everything renders correctly if the events are not touched as shown in the image below.
Visual Studio 2022 - Version 17.14.20
Visual Studio 2026 Insiders - Version: Insiders [11206.111]
@AdmiralSnyder