-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Cannot bind to style when binding to events #16055
Comments
this is a known issue, it works in 0.4.0 |
Actually I no longer thing this is fixed in 0.4.0. Needs more investigation. |
Do you need more info? |
No, the repro info above is sufficient. Thanks for reporting it! We'll investigate. |
I'll take a look at this. |
The logic that binds event handlers was interfering with the code that prevents component properties from receiving complex content. This check was a little overzealous.
This should be fixed in dev as part of the upcoming 0.4 release |
I'm using 0.5.1 and still having this issue. In my case it's happening when using a BlazorStrap Image component. I notice that if I use a plain HTML img the problem goes away. |
@vargonian Please open an issue with your steps for reproducing the issue and we'll take a look. |
The logic that binds event handlers was interfering with the code that prevents component properties from receiving complex content. This check was a little overzealous.
I'm using Blazor 0.3.0 and whenever I bind to an event any bind to 'style' breaks.
I have a sample app at https://github.com/rpedretti/BlazorApp on branch version_0_3_0 that the bug can be reproduced, but I guess it' happens in any project
Given a simple tag like
The compiler throws
and even the intellisense breakes:
![image](https://user-images.githubusercontent.com/675601/39705115-d74273bc-51e3-11e8-83a8-39cd8511f4e2.png)
By removing any of the properties the project compiles beautifully and intellisense works again.
The text was updated successfully, but these errors were encountered: