DateField popup doesn't close when click on popup button (#14857)

Fix and tests.

Change-Id: I99d92c32727323fae543a24dfb90e849c3338a8c