mairatma/alloy-ui — pull request #141 by zxdgoal (2014-12-26 03:35:51+00:00)
Title: AUI-1169 Add tab key as hide event for the datepicker in active input.

Hey @mairatma

Merry Christmas :)

This is a fix for [AUI-1169](https://issues.liferay.com/browse/AUI-1169).

I move *instance.set('activeInput', node);* before *var popover = instance.getPopover();* so that we can get *activeInput* from *instance* in method of *_setPopover*.

But I still have a problem when dealing with [AUI-1814](https://issues.liferay.com/browse/AUI-1814).

Changing *triggerShowEvent: 'click'* to triggerShowEvent: 'focus' only has effect when tabbing to the input at second time.

When focusing on the input at the very first time, the datepicker only pops up for event 'mousedown', but not for event 'focus' event if we delegated both in datepicker-delegate.js.

I need to investigate more.

So Let us solve AUI-1169 at first.

Thanks
John