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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TextBox is removing characters when losing focus

Thread ID:





145691 Jul 4,2019 03:49 AM UTC Jul 4,2019 05:24 PM UTC Blazor 2
Tags: TextBox
Asked On July 4, 2019 03:49 AM UTC

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 class="form-group mb-3">
                    <EjsTextBox Placeholder="Address 2" FloatLabelType="FloatLabelType.Auto" @bind-Value="@updatedAddress.Address2"></EjsTextBox>
                    <ValidationMessage For="@(()=> updatedAddress.Address2)" />
                <div class="form-group mb-3">
                    <EjsTextBox Placeholder="Address 3" FloatLabelType="FloatLabelType.Auto" @bind-Value="@updatedAddress.Address3"></EjsTextBox>
                    <ValidationMessage For="@(()=> updatedAddress.Address3)" />
                <div class="form-group mb-3">
                    <EjsTextBox Placeholder="City *" FloatLabelType="FloatLabelType.Auto" @bind-Value="@updatedAddress.City"></EjsTextBox>
                    <ValidationMessage For="@(()=> updatedAddress.City)" />
                <div class="form-group mb-3">
                    <EjsTextBox Placeholder="State *" FloatLabelType="FloatLabelType.Auto" @bind-Value="@updatedAddress.State"></EjsTextBox>
                    <ValidationMessage For="@(()=> updatedAddress.State)" />
                <div class="form-group mb-3">
                    <EjsTextBox Placeholder="Postal Code*" FloatLabelType="FloatLabelType.Auto" @bind-Value="@updatedAddress.PostalCode"></EjsTextBox>
                    <ValidationMessage For="@(()=> updatedAddress.PostalCode)" />
                <div class="form-group mb-3">
                    <EjsDropDownList Placeholder="Country *" FloatLabelType="FloatLabelType.Auto" @bind-Value="@chosenCC" DataSource="@countryCodeList"></EjsDropDownList>
                    <ValidationMessage For="@(() => chosenCC)" />

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


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.

Berly Christopher [Syncfusion]
Replied On 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   


Berly B.C

Replied On July 4, 2019 05:24 PM UTC

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon