In AFX I replace the dot in the HTML attribute with _DOT_: x-on:click_DOT_away="openMenu = false"
And after the AFX section, I have the following line: @process.replaceDot = ${String.replace(value, '_DOT_', '.')} to replace the custom string with a dot. The HTML output in the frontend is now correct.
I don’t know if this is a good practice, but for now it’s fine for me.
Would be nice if it would work in the future without the little workaround.
That is a creative approach, i like it. Adding attribute quoting to afx will not happen soon (unless someone implements it) so this is basically the only way to do this now.