Label moving from floating to within textbox when user resets form

Hi, I'm using ejs-textbox within a form on an edit page.  I have the floatLabelType set to Always.  If the user goes to the Edit page and this field is blank initially, then the user types a value in the field, and then the user clicks the cancel button which resets the form; the textbox clears the data the user typed in (as expected), however the label moves into the text box.  I want the label to always float and not move into the textbox.  How can I prevent the label from moving into the textbox in this situation?

                 <div class="form-group">

                            <div class="mb-3">

                 <ejs-textbox id="location" placeholder="Location" ejs-for="Location" floatLabelType="Always"></ejs-textbox>

@Html.ValidationMessageFor(model => model.Location, "", new { @class = "text-danger" })

                            </div>

                        </div>




5 Replies

UD UdhayaKumar Duraisamy Syncfusion Team August 22, 2022 03:42 PM UTC

Hi RWB,


We were able to reproduce the reported issue on our end. We will update the further details in two business days (24th August 2022).


Regards,

Udhaya Kumar D



UD UdhayaKumar Duraisamy Syncfusion Team August 24, 2022 02:18 PM UTC

Hi RWB,


We have considered the reported issue as a bug from our end and will be fixed in our September 7th patch release. You can track the status of the issue by the below feedback link.


Feedback Link : https://www.syncfusion.com/feedback/37245/in-textbox-floatlabletype-property-is-not-working-properly-when-it-is-set-to


Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”


Regards,

Udhaya Kumar D



UD UdhayaKumar Duraisamy Syncfusion Team September 12, 2022 05:47 AM UTC

Hi RWB,


We are facing complexity to resolve the reported issue. We will fix the issue in the upcoming 14th September 2022 patch release.


Regards,

Udhaya Kumar D



UD UdhayaKumar Duraisamy Syncfusion Team September 15, 2022 05:42 PM UTC

Hi RWB,


We have fixed the reported issue and the fix in the testing phase, we will include the 21st September 2022 weekly patch release.


Regards,

Udhaya Kumar D



UD UdhayaKumar Duraisamy Syncfusion Team September 21, 2022 05:09 AM UTC

Hi RWB,


We have fixed your reported issue “In TextBox, FloatLableType property is not working properly when it is set to “Always”” from our end in the 20.2.49 version. So, we suggest you upgrade your packages to the latest version to resolve the current issue.


Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/CoreTextBox545851251


Regards,

Udhaya Kumar D



Loader.
Up arrow icon