@larryh wrote:
Hi,
I’m using 3.13 and trying to modernize my code with decorators, tracked properties, etc. So far, so good, but I am having a problem with the new “on click” event handler format.
Here are a couple of statements that I use it in:
<PaperForm {{on "submit" this.submit}} as |form|>
{{on "click" (fn this.toggleAccordions "our-site" "problem")}}
And this is the error I am getting for both (and everywhere else I use this format):
Compile Error: Element modifiers are not allowed in components undefined
But the code works fine, and no errors are spit out in the console.
I really don’t understand the error message; the term “element modifiers” is kind of vague to me.
Can someone tell me what I am doing wrong?
Thanks,
Larry
Posts: 5
Participants: 2