From ad39bd58497e790140fbeacde414ff869dcc56ca Mon Sep 17 00:00:00 2001 From: Mark Fletcher Date: Wed, 20 Jun 2018 13:53:14 +0100 Subject: [PATCH] Prevent browser autocomplete for milestone date fields --- app/views/shared/milestones/_form_dates.html.haml | 4 ++-- ...selection-dialog-broken-when-creating-a-new-milestone.yml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 changelogs/unreleased/48153-date-selection-dialog-broken-when-creating-a-new-milestone.yml diff --git a/app/views/shared/milestones/_form_dates.html.haml b/app/views/shared/milestones/_form_dates.html.haml index 608dd35182d..922805958a5 100644 --- a/app/views/shared/milestones/_form_dates.html.haml +++ b/app/views/shared/milestones/_form_dates.html.haml @@ -2,10 +2,10 @@ .form-group.row = f.label :start_date, "Start Date", class: "col-form-label col-sm-2" .col-sm-10 - = f.text_field :start_date, class: "datepicker form-control", placeholder: "Select start date" + = f.text_field :start_date, class: "datepicker form-control", placeholder: "Select start date", autocomplete: 'off' %a.inline.float-right.prepend-top-5.js-clear-start-date{ href: "#" } Clear start date .form-group.row = f.label :due_date, "Due Date", class: "col-form-label col-sm-2" .col-sm-10 - = f.text_field :due_date, class: "datepicker form-control", placeholder: "Select due date" + = f.text_field :due_date, class: "datepicker form-control", placeholder: "Select due date", autocomplete: 'off' %a.inline.float-right.prepend-top-5.js-clear-due-date{ href: "#" } Clear due date diff --git a/changelogs/unreleased/48153-date-selection-dialog-broken-when-creating-a-new-milestone.yml b/changelogs/unreleased/48153-date-selection-dialog-broken-when-creating-a-new-milestone.yml new file mode 100644 index 00000000000..13ab5b0467d --- /dev/null +++ b/changelogs/unreleased/48153-date-selection-dialog-broken-when-creating-a-new-milestone.yml @@ -0,0 +1,5 @@ +--- +title: Prevent browser autocomplete for milestone date fields +merge_request: +author: +type: fixed