The Share to Teams button always throws a warning if there isn't an element readily on the page

What do you recommend for use cases where the share button will not be rendered initially - ie in a modal? Can you suppress the warning in any way? I intend to just use the shareToMicrosoftTeams.renderButtons() when the modal opens.
Also noticing that the screen reader is not announcing properly on the element. It's reading the image tag because there's no alt tag or aria-hidden on that element. Do you have any suggestions on how to support an accessible experience?

For the first, there is no way to suppress the warnings, however using the renderButtons function is the correct approach.
For the second, that has been filed as a bug and will be fixed in a future release.
Thanks for your response, Andrew. I'm a little curious to know the intent of the warnings if the renderButtons function is also a correct way of utilizing the plugin?
Also good to know about item 2, I'll keep an eye out for that. Any chance it would be resolved before August 1st? That's when we plan to go live with the integration.
Appreciate the help!
Hi @paulconlin,
The warnings are simply intended for those who are using the basic feature, as the script scans the page on load. We'll consider making those warnings a bit quieter in a future release.
On the second point, it is a small fix for screen readers, so a fix before August is likely. We'll resolve this issue when it has been fixed.
Thank you for the feedback!
This should be fixed now, please let us know if you are still experiencing any issues.
Most helpful comment
Hi @paulconlin,
The warnings are simply intended for those who are using the basic feature, as the script scans the page on load. We'll consider making those warnings a bit quieter in a future release.
On the second point, it is a small fix for screen readers, so a fix before August is likely. We'll resolve this issue when it has been fixed.
Thank you for the feedback!