Disabled date picker on microsoft edge

This commit is contained in:
Xavier J 2016-10-10 16:17:17 +02:00
parent 2b4a242418
commit 99d7d52f87

View file

@ -9,7 +9,7 @@ class Champ < ActiveRecord::Base
end
def data_provide
return 'datepicker' if (type_champ == 'datetime' || type_champ == 'date') && !BROWSER.value.chrome?
return 'datepicker' if (type_champ == 'datetime' || type_champ == 'date') && !(BROWSER.value.chrome? || BROWSER.value.edge?)
return 'typeahead' if type_champ == 'address'
end