air-datepicker icon indicating copy to clipboard operation
air-datepicker copied to clipboard

todayButton doesn't work as expected

Open netchampfaris opened this issue 7 years ago • 2 comments

In case of DateTime picker, the time is not updated each time the "Today" Button is clicked.

datepicker_now

This is the code: image

The current time is set only once. This will work in case of Date but not for Time.

netchampfaris avatar Sep 04 '17 09:09 netchampfaris

@t1m0n I can see in the latest version of air-datepicker... without time picker enabled i.e. in date picker only mode. The 'Today' button doesn't work at all. Nothing happens with the click of the 'Today' button.

I just passed below pre-installed buttons as

buttons: ['today', 'clear'];

Both buttons got rendered on the date picker. However, when I clicked on the 'Today' button, nothing happened. whereas, the 'Clear' button is working fine.

soru95 avatar Feb 18 '22 10:02 soru95

@soru95 today button should only perform transition to current date, without selection.

t1m0n avatar Feb 18 '22 11:02 t1m0n