tryphotino / photino.Blazor

https://tryphotino.io
Apache License 2.0
324 stars 62 forks source link

`Microsoft.JSInterop.JSException: element.AddEventListener is not a function` errors thrown to StdOut #17

Open Smurf-IV opened 3 years ago

Smurf-IV commented 3 years ago

image

MikeYeager commented 3 years ago

Thanks for the post. Please join the discussion on #18

ottodobretsberger commented 3 years ago

For repro purposed we would need some more information about the running OS, the steps taken to trigger the error, etc. More detail would help us with that investigation.

Smurf-IV commented 3 years ago

Use Blazorise. Add A TextInput Start the Blazor application in Photino.

ottodobretsberger commented 3 years ago

We are planning to update the Blazor source code from Microsoft, since the current internal version is still based on 3.1 That may fix it. If that doesn't, we can consider looking further into the issue with Blazorise.

Tewr commented 2 years ago

Hello. This came up as an issue earlier this year in a blazor component I'm maintaining, and I'm pretty sure the underlying error is the (non-)management of ElementReference, as described in #28

MikeYeager commented 2 years ago

If the community fixes and does a pull request, we're happy to merge it and post a new version.

MikeYeager commented 2 years ago

@Tewr Photino.Blazor is now updated to use .NET 6. Please try again and let us know if this is now fixed.

Denny09310 commented 2 years ago

@Tewr Photino.Blazor is now updated to use .NET 6. Please try again and let us know if this is now fixed.

Hi, I'm new to Photino with Blazor and maybe someone has found a workaround, but the problem is still present. Using the template provided in the repo as starting point I was trying to use Blazored.LocalStorage functionalities but when I try to Save/Access into the local storage it thorws an error. I don't know if it's the same problem as this, but I'll try to include as much details as possible. I'll include even the Blazored service configuration, maybe I'm doing something wrong there.

EDIT: I leave it here in case the problem reoccurs, but in another project (a new one) it works just fine

image image

ottodobretsberger commented 2 years ago

Thank you for pointing this out. As time permits we will look into this more (unless there's community involvement/help before we get to do so)