Placeholder getting overwritten Localized

I have a Datepicker for which i would like to assignee a Placeholder which im trying to do with this code:

<ejs-datepicker id="EndDate" ejs-for="EndDate" firstDayOfWeek="1" cssClass="datepicker" placeholder="@(Localizer.GetString(LocalizationKeys.DateEnd))" floatLabelType="Always"></ejs-datepicker>


But after the site is loaded the placeholder is replaced by the default localized Text from the locals file. 

When trying to find the error i found that on creation the Datepicker had the correct placeholder but it gets overwritten by the localization at some point.



1 Reply

DR Deepak Ramakrishnan Syncfusion Team May 23, 2022 05:34 PM UTC

Hi Chris,


Thanks for contacting Syncfusion support.


Yes its component intended behaviour , When Placeholder key is defined with value in L10 class . You can refer our below demo example by switching between cultures . The assigned value will get replaced based on the placeholder value loaded .


Demo Link : https://ej2.syncfusion.com/aspnetcore/DatePicker/DefaultFunctionalities#/bootstrap5


Thanks,

Deepak R.


Loader.
Up arrow icon