[TYPO3-core] RFC: Bug #16681: Live-Search: Search field does not always revert to default state when losing focus

Jeff Segars jsegars at alumni.rice.edu
Thu Jan 20 20:40:46 CET 2011


On 1/19/11 4:01 PM, Jeff Segars wrote:
> Hey guys,
>
> This is a SVN patch request.
>
> Type: Bugfix
> Bugtracker reference: http://bugs.typo3.org/view.php?id=16681
> Branch: trunk
>
> Problem:
> When leaving the search field, if there is no text entered Live Search
> should return to its default state and display "Enter search term." This
> happens consistently when clicking in the black top bar. When clicking
> into an iFrame, it only works for the initial module that is loaded. As
> you continue to use other modules in the backend, it quits working.
>
> Solution:
> Add a new event listener outside the scope of the ExtJS widget that
> handles the blur event. Thanks to Steffen Kamper for suggesting this
> approach.
>
> Additional Notes:
> To test, just use the backend and as you browser between modules make
> sure that the Live Search shows and hides consistently no matter where
> you click. Without the patch, the hiding will be very inconsistent when
> clicking inside iframes.
>
> Thanks,
> Jeff

Ok, lets try this one again.  The blur event alone was not a good 
option, because it also fires before search results are clicked and 
prevents handling that click.

Instead, we need to watch for mouseover / mouseout on the search results 
and see if the resulting blur is the result of a click outside the 
search results.  If it is, then we can close the search results.

Did I ever mention I hate iFrames? :)

Thanks,
Jeff


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16681_v4.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110120/e422981c/attachment-0001.asc>


More information about the TYPO3-team-core mailing list