Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

2
Votes

I use the code in the attached file to place text on the clipboad.

I have tried it in csharp code with JSRuntime and between script tags. It works fine in Edge or Chrome, but in Safari it is not allowed. Safari only works, if there is no csharp involved. If I use a Anchor tag or an HTML button and call the Javascript function without going into csharp code, it works in all browsers. 
This is that case even if I, imbed the csharp code in the razor file. 

The problem being that I can't call javascript directly from SfButton or SfFab without going through c# code. I have tried adding event handlers at runtime without success.

Is there a way to call javascript function without going into csharp? If not then I would like to humbly ask for this new feature.


Dom Aguilar