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
I am trying to use a template string to make a dynamic reference to an ID. Unfortunately this doesn't work due to an unterminated string error. Here is a jsfiddle with an example and a workaround (using an intermediate variable).
My expectation is for any expression to be valid for use as a dynamic ID. Is this a bug or is this intended? If intended, what is the reasoning for the limitation?
<buttonid="foo" _="on click toggle [@hidden] on #{`test-${event's target.id}`}">
Show/Hide
</button><divid="test-foo">
Hello
</div><buttonid="bar" _="on click set id to `test-${event's target.id}` toggle [@hidden] on #{id}">
Show/Hide
</button><divid="test-bar">
Hello
</div>
The text was updated successfully, but these errors were encountered:
I am trying to use a template string to make a dynamic reference to an ID. Unfortunately this doesn't work due to an unterminated string error. Here is a jsfiddle with an example and a workaround (using an intermediate variable).
My expectation is for any expression to be valid for use as a dynamic ID. Is this a bug or is this intended? If intended, what is the reasoning for the limitation?
The text was updated successfully, but these errors were encountered: