I know salesforce summer 17 release depricated ui:inputcomponent. We have a date picker with ui:inputdate and it was broke in a summer 17 sandbox. We were working on a fix in spring sandbox, but figured out that the date picker works fine now. Did salesforce bring ui:dateinput back again? I don't see any document anywhere? did anything change?
In Summer 17, there are two issues that will affect you:
- Locale has been removed from all
The locale parameter is deprecated for several methods in the AuraLocalizationService object. The validation for the locale parameter has also been tightened to allow locale values to match only the user’s Language or Locale settings in Salesforce. If the locale parameter is set to another value, it defaults to the user’s Language setting.
ui:inputDatehas changes, described here:
The behavior of the date picker has changed. Clicking the date field displays the date picker even if displayDatePicker is false. If displayDatePicker is true, an icon that triggers the date picker is displayed in the field. The date picker displays the Today link. Press the link to set today’s date on the date field.
How this will affect you:
You have a Summer 17 sandbox with the changed
You have a Spring 17 Production instance.
You can't deploy these changes until Summer 17 is officially released, as the
localeissue will affect you.
You DO however have to deploy as soon as Summer 17 goes live, because your existing date picker will immediately break.
Salesforce never took away
ui:inputDate or brought it back - it's always been there, but is now not useable for the custom date picker, as it tries to use it's own built in, horrible looking date picker.
The custom datepicker you are using NO LONGER USES
ui:inputDate - it uses a custom inputdate that I built. Which is why it all works now.