You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Therefore if the content is, let's say, an icon, it doesn't work anymore. Wouldn't it be a nice additional feature to user innerHTML so that any kind of content would be put back in place once the successContent message has been displayed, like the suggestion below ? I can't see any side effect as it would work the same for simple text and only extend the component capabilities, but I might miss something...
This fixesstimulus-components#7 and makes it possible, to use buttons with icon only.
I was unsure, if we should change it for the successContent as well. What do you think?
Hey there,
In the controller, innerText is used to retrieve and put back the content of the buttonTarget in the connect and copied methods:
Therefore if the content is, let's say, an icon, it doesn't work anymore. Wouldn't it be a nice additional feature to user innerHTML so that any kind of content would be put back in place once the successContent message has been displayed, like the suggestion below ? I can't see any side effect as it would work the same for simple text and only extend the component capabilities, but I might miss something...
Thanks,
The text was updated successfully, but these errors were encountered: