mdPickers icon indicating copy to clipboard operation
mdPickers copied to clipboard

Feature: close on-dblclick date

Open rtvisser opened this issue 9 years ago • 2 comments

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.

rtvisser avatar Mar 16 '16 11:03 rtvisser

Has there been any update to this suggested improvement?

rafaelhc avatar May 13 '16 06:05 rafaelhc

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 :-)

webservconsultant avatar May 16 '16 20:05 webservconsultant