Wappler Version : 6.7.2
Operating System :
Server Model:
Database Type:
Hosting Type:
Expected behavior
The dmx-on:add
should not trigger when the component is initialized
Actual behavior
If the tagify component has a dynamic value, the add event fires for each item contained within the value.
How to reproduce
In this example, recipe returns the dynamic value of the tagify component, and tags returns the dataset.
<meta name="ac:route" content="/test">
<dmx-serverconnect id="recipe" url="/api/1/4/recipes/recipe" dmx-param:recipe_id="10854"></dmx-serverconnect>
<dmx-serverconnect id="tags" url="/api/1/4/tags/tags"></dmx-serverconnect>
<input is="dmx-tagify" id="tagify1" name="tagify1" dmx-bind:data="tags.data.recipe_tags" tag-text="tag_text" tag-value="tag_text" dmx-on:add="run({alert:{message:'Tagify add event'}})" dmx-bind:value="recipe.data.basics.tags.groupBy(`tag_text`).keys()" min-chars="0">