Fix range not being applied on click

When clicking on a range we are hiding the range picker but not applying it. This patch applies the date as well.