mdPickers
mdPickers copied to clipboard
Feature: close on-dblclick date
Usability would improve if ng-dbclick event on date/time would select the date/time value and then close the date/time picker, thus avoiding an extra click to close the dialog.It seems there is a pull request open for this already.
Has there been any update to this suggested improvement?
Modified below statement
<md-button class="md-icon-button md-raised" aria-label="Select day" ng-if="day" ng-class="{ \'md-accent\': calendar.date.date() == day.value }" ng-click="calendar.selectDate(day.value)"
ng-disabled="!day.enabled">{{ day.value }}</md-button>
to
<md-button class="md-icon-button md-raised" aria-label="Select day" ng-if="day" ng-class="{ \'md-accent\': calendar.date.date() == day.value }" ng-click="calendar.selectDate(day.value)"
ng-dblclick="datepicker.confirm()" ng-disabled="!day.enabled">{{ day.value }}</md-button>
seems to be working :-)