We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

TextBox is removing characters when losing focus

All of my text boxes work just fine, however I have one on a page that removes any characters after s space when you tab out or change focus.

All of my text boxes are wired up the same way (see below), but for some reason the Address1 box does this.

<EditForm Model="@updatedAddress" OnValidSubmit="@SaveAddress">
        <DataAnnotationsValidator />
        <div class="row">
            <div class="col">
                <div class="form-group mb-3">
                    <EjsTextBox Placeholder="Address 1*" FloatLabelType="FloatLabelType.Auto" @bind-Value="@updatedAddress.Address1"></EjsTextBox>
                    <ValidationMessage For="@(()=> updatedAddress.Address1)" />
                </div>
                <div class="form-group mb-3">
                    <EjsTextBox Placeholder="Address 2" FloatLabelType="FloatLabelType.Auto" @bind-Value="@updatedAddress.Address2"></EjsTextBox>
                    <ValidationMessage For="@(()=> updatedAddress.Address2)" />
                </div>
                <div class="form-group mb-3">
                    <EjsTextBox Placeholder="Address 3" FloatLabelType="FloatLabelType.Auto" @bind-Value="@updatedAddress.Address3"></EjsTextBox>
                    <ValidationMessage For="@(()=> updatedAddress.Address3)" />
                </div>
                <div class="form-group mb-3">
                    <EjsTextBox Placeholder="City *" FloatLabelType="FloatLabelType.Auto" @bind-Value="@updatedAddress.City"></EjsTextBox>
                    <ValidationMessage For="@(()=> updatedAddress.City)" />
                </div>
                <div class="form-group mb-3">
                    <EjsTextBox Placeholder="State *" FloatLabelType="FloatLabelType.Auto" @bind-Value="@updatedAddress.State"></EjsTextBox>
                    <ValidationMessage For="@(()=> updatedAddress.State)" />
                </div>
                <div class="form-group mb-3">
                    <EjsTextBox Placeholder="Postal Code*" FloatLabelType="FloatLabelType.Auto" @bind-Value="@updatedAddress.PostalCode"></EjsTextBox>
                    <ValidationMessage For="@(()=> updatedAddress.PostalCode)" />
                </div>
                <div class="form-group mb-3">
                    <EjsDropDownList Placeholder="Country *" FloatLabelType="FloatLabelType.Auto" @bind-Value="@chosenCC" DataSource="@countryCodeList"></EjsDropDownList>
                    <ValidationMessage For="@(() => chosenCC)" />
                </div>
            </div>
        </div>

        <div class="row mt-4">
            <div class="col-6">
                <button class="btn btn-block btn-success" type="submit">Save</button>
            </div>
            <div class="col-6">
                <button class="btn btn-block btn-danger" type="button" @onclick="@Cancel">Cancel</button>
            </div>
        </div>

    </EditForm>

Not sure how to really explain it any better, but if I start typing in say 123 Anystreet and then hit tab, what is left over is just 123.

There are no annotations on the POCO property, it's pretty plain.

2 Replies

BC Berly Christopher Syncfusion Team July 4, 2019 11:24 AM UTC

Hi Ozzie,




Greetings from Syncfusion.




The reported issue (“TextBox is removing characters when losing focus”) is an already known issue at our end and this has been fixed internally. This fix will be included in our upcoming patch release scheduled on 15th July 2019. So, we suggest to use the below attached “ejs.interop.min.js” file in your server side blazor application to get rid of the reported issue. If you are using client-side blazor application, you need to wait for patch release on that date. We appreciate your patience until then.


Patch file link: https://www.syncfusion.com/downloads/support/forum/145691/ze/interop_file-348828817   



Regards,

Berly B.C
 



IT ITninja July 4, 2019 05:24 PM UTC

That worked, thank you so much for your quick response!

Loader.
Live Chat Icon For mobile
Up arrow icon