A select element does not update its dynamic value after source server connect reloads

Wappler Version : 6.4.2 beta/exp
Operating System : mac
Server Model: node
Database Type:
Hosting Type:

Expected behavior

The dynamic value of a select element should be updated, if the source server connect is reloaded

Actual behavior

If the select value is changed by a user, and the source server connect is reloaded, the value stays set to what the user selected.

How to reproduce

 <select id="inp_price_status" class="form-select" dmx-on:changed="flow_price_status.run({tenant_web_price_id: tenant_web_price_id, status: value})" dmx-bind:value="stripe_active?'active':'archived'">
                                          <option value="active">Active</option>
                                          <option value="archived">Archived</option>
                                        </select>

When the value of the select changes, a flow is run. In that flow a confirmation is thrown and if canceled, the source of the select value is reloaded.

After the source is reloaded, the value should return to the value provided by the server connect, but instead it retains the user selection.

The select is within a repeat using the server connect data.

You will need to reset the form to undo the user input. The value property and the value attribute are not the same. The value attribute is the default value for the form element and is not being updated by the user input, calling the form reset will change the value back to the one set in the value attribute. The attribute value binding probably didn’t change after the serverconnect reload and so the component was not updated.

Okay, that makes sense…I’ll go another direction. Thanks!