summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2018-06-20 13:53:14 +0100
committerMark Fletcher <mark@gitlab.com>2018-06-20 13:53:14 +0100
commitad39bd58497e790140fbeacde414ff869dcc56ca (patch)
tree7877a98626552fd77e215e7437414083271ee653
parent9092e96abc165ccd76d5b54fcd507c8c989b99ec (diff)
downloadgitlab-ce-ad39bd58497e790140fbeacde414ff869dcc56ca.tar.gz
Prevent browser autocomplete for milestone date fields
-rw-r--r--app/views/shared/milestones/_form_dates.html.haml4
-rw-r--r--changelogs/unreleased/48153-date-selection-dialog-broken-when-creating-a-new-milestone.yml5
2 files changed, 7 insertions, 2 deletions
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