enyojs/moonstone — pull request #1428 by KunmyonChoi (2014-06-30 23:56:13+00:00)
Title: BHV-11091: Fixing ExpandableInput so that it can be closed when tap on header.

Problem:
ExpandableInput is not closed by tap on header when it is opened.

Analysis:
This is regression which is introduced after changing spotlight select timing from onKeyDown to onKeyUp.
Both of Gesture and Spotlight are generating tap event but Spotlight is filter events by pointer mode on onMouseDown and onMouseUp handler.
The closeDrawerAndHighlightHeader is called by tap handler in ExpandableInput, pointer mode is set as false to give focus to header even in pointer mode.
This forced pointer mode setting make duplicated tap event because onMouseUp handler is not filter out the event.

Solution:
Recover previous spotlight pointer mode to prevent unwanted onMouseUp event on ExpandableInput.

DCO-1.1-Signed-Off-By: Kunmyon Choi kunmyon.choi@lge.com