Using editable macro with iteration doesn't work

I am trying to use a dynamic id in an editable field. The text is displayed, but the ID is not set properly. Here is a code snippet.

<section-iterate name="xyz" entry="demo" list="user">
    <widgets>
        <editable type="pre" id="${demo}" text="${demo}" transition="." />
    </widgets>
</section-iterate>

      

The browser displays the following page source:

<pre id="${demo}">Harry</pre>

      

+3


source to share


1 answer


In previous versions, the editable @id attribute was not an expanded string, but now it is. The iteration section also populates a field that will be automatically added to each ID, so with the latest code in the GitHub repository, just use something like id = "DemoEditable" and a numeric suffix to make it unique will be added automatically.



0


source







All Articles