Update datepicker to handle inputs and contenteditables.