I have a modal window with a form. Inside the form there is a tagify component that receives dynamic data. The problem occurs at the moment when the form is reset. The data inside tagify disappears, including dynamic data that should not be reset when the form is reset.
For clarity, I created additional inputs to show what it looks like:
The upper input contains the same dynamic values as the tagify component. The lower input has dynamic values in the form of tagify component values. The form is reset when the modal window closes, resulting in the following result:
As you can see, after resetting the form, the dynamic data inside tagify disappears, so the tagify input and the lower input are empty. The upper iput, after resetting the form, remains with the data, as it should be.
Code from the example:
<input id="text1" name="text1" type="text" class="form-control" dmx-bind:value="detail_thread.data.access_thread.where(`creator`, 1, '!=').groupBy(`user_id`).keys()">
<input type="text" class="form-control form-control-lg" id="access_users_thread" name="access_users_thread" aria-describedby="access_users_thread_help" placeholder="Выберите пользователя" is="dmx-tagify" dmx-bind:data="array_access_contact.value.where(`creator`, 1, '!=')" tag-text="fio" tag-secondary="position" tag-value="user_id" nocustom="true" min-chars="0" max-items="30" dmx-bind:value="detail_thread.data.access_thread.where(`creator`, 1, '!=').groupBy(`user_id`).keys()">
<input id="text2" name="text2" type="text" class="form-control" dmx-bind:value="access_users_thread.values">