unsafeHTML does not correctly render event attributes like @click #4661
-
If I were to pass in something like the following, Where this._handleCheck is a method of the component that encapsulate this calculate component. It would take the method and simply replace this._handleCheck. The following is what I get in the browser. The _handleCheckfunction is not called when the check event is fired. Is it intended or potentially a bug? How do I correctly render the calculator component with unsafeHTML? Any input would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is intended. |
Beta Was this translation helpful? Give feedback.
This is intended.
unsafeHTML()
is meant to include just HTML strings. Things like@click
arelit-html
template bindings which are not purely HTML things.