Follow-up b446a3b9: don't auto-close DateInputWidget too early
authorRoan Kattouw <roan.kattouw@gmail.com>
Mon, 31 Jul 2017 19:22:59 +0000 (12:22 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Mon, 31 Jul 2017 19:22:59 +0000 (12:22 -0700)
commitd13f76bc3045475a6a35563b635236d473056a65
tree18099cfa4791b753211bf694dd028b2f620587fe
parent0136e56de45b04c8d35f95d96a3fe27fed2159c4
Follow-up b446a3b9: don't auto-close DateInputWidget too early

Clicking on a month does not mean that the user has made a selection,
it only means that if we are in { precision: 'month' } mode.
In { precision: 'day' } mode, clicking a month is navigational,
so don't auto-close in that case.

Bug: T172041
Change-Id: I16a3e15a3b69844ff866fc09ba6a9268e85b2930
resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js