Input Losing Focus When dmx-on:change Triggers a Server Connect

I have an input that has a dmx-on:changed which did 2 things:

  1. Update a data store
  2. Update a variable

All was working well.

Then I added a third action which runs a server connect. Adding this causes the focus on the input to keep being lost as the app user types a value into the input… so the user types a letter or two and then has to re-click into the input to continue typing.

How can I overcome this?

The input’s code is below!

Best wishes,
Antony.

<input type="text" class="form-control input_form" id="i_mobile_phone" name="mobile_phone" aria-describedby="input1_help" placeholder="" dmx-bind:value="mobile_phone_xxx"
                        dmx-on:changed="attendees.update({$id: $id},{mobile_phone: i_mobile_phone.value});show_payment_details.setValue(0);(this_attendee_number.value!=last_attendee_number.value)?exit_attendee.load({booking_item: booking_item, contact: contact, first_name: first_name, last_name: last_name, email: i_contact_email.value, attendee_number: attendee_number, mobile_phone: i_mobile_phone.value, known_as: known_as,  alert_level: alert_level}):false">
Community Page
Last updated: