Segmented control is picking two options

Summary

Two options could be selected in the segmented control.

Given the date range 2021-06-01 → 2021-06-15 When today is the 2021-06-15 Then Last 14 days and This month are selected

Steps to reproduce

What is the current bug behavior?

Both Last 14 days and This month are selected

What is the expected correct behavior?

Only one option can be selected. Making changes to the date range picker itself should not activate any item in the segmented control. Picking a custom range should set all segmented control options to default.

Segmented_control

Relevant logs and/or screenshots

image

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by Austin Regnery