Form repeat with dmx-bind:min does not always work

Wappler Version : 5.4.1
Operating System : mac
Server Model: node
Database Type:
Hosting Type:

Expected behavior

A form repeat with a dmx-bind:min value should properly evaluate if the page is opened via internal link as well as full page refresh.

Actual behavior

On full page refresh, it works properly. On internal link, it does not evaluate properly.

How to reproduce

A form repeat with a dmx-bind:min that points to a conditional region

The form repeat

<div is="dmx-form-repeat" id="person_site_profiles" dmx-bind:items="get_user.data.user.person_profiles[0].site_profiles" dmx-bind:min="if_new_user.inp_user_type.value.contains('site')?1:0">

The conditional region:

<div class="col" is="dmx-if" id="if_new_user" dmx-bind:condition="!query.user_id">
                <div class="form-group mb-3 row">
                    <label for="input1" class="col-sm-2 col-form-label">User type</label>
                    <div class="col-sm-10">
                        <div class="row">
                            <div class="col">
                                <div class="form-group mb-3" id="inp_user_type" is="dmx-radio-group" dmx-bind:value="'site_member'">
                                    <div class="row">
                                        <div class="col">
                                            <div class="form-check">
                                                <input class="form-check-input" type="radio" value="site_member" id="inp_user_type_site_member" name="user_type">
                                                <label class="form-check-label" for="inp_user_type_site_member">Member</label>
                                            </div>
                                            <div class="form-check">
                                                <input class="form-check-input" type="radio" value="site_non_member" id="inp_user_type_site_non_member" name="user_type">
                                                <label class="form-check-label" for="inp_user_type_site_non_member">Non-member</label>
                                            </div>
                                        </div>
                                        <div class="col">
                                            <div class="form-check" dmx-show="get_current_user.data.permissions.manage_app_users">
                                                <input class="form-check-input" type="radio" value="app" id="inp_user_type_app" name="user_type">
                                                <label class="form-check-label" for="inp_user_type_app">App admin/editor</label>
                                            </div>
                                            <div class="form-check" dmx-show="get_current_user.data.permissions.manage_host_users">
                                                <input class="form-check-input" type="radio" value="host" id="inp_user_type_host" name="user_type">
                                                <label class="form-check-label" for="inp_user_type_host">Host admin/editor</label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

When using this link:

dmx-on:click="browser1.goto('/app_console/user/'+user_id,true,username)

The form repeat has a minimum of 1, and incorrectly displays fields automatically.
Screenshot 2023-02-18 at 8.52.08 AM

If I manually refresh the page (or change the link to internal==false), it has the desired minimum of zero, and does not display fields.
Screenshot 2023-02-18 at 8.52.18 AM

Community Page
Last updated: