ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan GroveAutoComplete Change History
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove===========================
e58e329a62c99b6967a791762117392e5af609deRyan Grove* Added an `enableCache` config attribute. Set this to `false` to prevent the
e58e329a62c99b6967a791762117392e5af609deRyan Grove built-in result sources from caching results (it's `true` by default).
67dad868b77ee156c32e10f4723686bcece665f2Ryan Grove* The `requestTemplate` value is now made available to YQL sources via the
67dad868b77ee156c32e10f4723686bcece665f2Ryan Grove `{request}` placeholder, which works just like the `{query}` placeholder. Use
67dad868b77ee156c32e10f4723686bcece665f2Ryan Grove this when you need to customize the query value (such as double-escaping it)
67dad868b77ee156c32e10f4723686bcece665f2Ryan Grove used in the YQL query. [Ticket #2531285]
4e21d9ace0f1e852eddbcea14f5becdce1d8dba9Ryan Grove* Changing the value of the `value` attribute programmatically will now also
4e21d9ace0f1e852eddbcea14f5becdce1d8dba9Ryan Grove update the value of the `query` attribute and will fire a `clear` event when
4e21d9ace0f1e852eddbcea14f5becdce1d8dba9Ryan Grove the value is cleared (thus clearing results), but still will not fire a
4e21d9ace0f1e852eddbcea14f5becdce1d8dba9Ryan Grove `query` event. Use the `sendRequest()` method to trigger a query
4e21d9ace0f1e852eddbcea14f5becdce1d8dba9Ryan Grove programmatically.
200e1189ccbb1d6a1ddbef2e9320535f4a1af440Ryan Grove* Added a workaround for an IE7 bug that would cause the result list to appear
200e1189ccbb1d6a1ddbef2e9320535f4a1af440Ryan Grove empty when it first becomes visible.
fc948858031e489d09d1d8c950ec74a88119cea6Ryan Grove* Fixed a bug that caused a scrollable result list to be hidden when the user
fc948858031e489d09d1d8c950ec74a88119cea6Ryan Grove clicked and dragged on the scrollbar and then released the mouse button while
fc948858031e489d09d1d8c950ec74a88119cea6Ryan Grove the cursor was outside the list region.
216e136bc23466fa2a8deeed50b267dc10379daaRyan Grove* Fixed a bug that caused the list to disappear on mouseover if the input field
216e136bc23466fa2a8deeed50b267dc10379daaRyan Grove received focus before the AutoComplete widget was initialized
216e136bc23466fa2a8deeed50b267dc10379daaRyan Grove [Ticket #2531651]
216e136bc23466fa2a8deeed50b267dc10379daaRyan Grove* Fixed a bug that could prevent results from being selected via mouse click
216e136bc23466fa2a8deeed50b267dc10379daaRyan Grove after a result was selected via the tab key. [Ticket #2531684]
12cd51e378139aa4d121b59664c7160c7c86ed35Ryan Grove* Fixed a bug that prevented the list from being re-aligned when the window was
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* The "combobox" ARIA role is no longer automatically added to an
be283020e5e7805257d00e466bb849b969bd109eRyan Grove AutoCompleteList input node. After consulting with the Y! Accessibility
be283020e5e7805257d00e466bb849b969bd109eRyan Grove team, we felt that the combobox role doesn't accurately represent the
be283020e5e7805257d00e466bb849b969bd109eRyan Grove out-of-the-box interactions that AutoCompleteList provides. Implementers can
be283020e5e7805257d00e466bb849b969bd109eRyan Grove still apply this role (or any other ARIA role) to the input node manually if
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Fixed a bug that prevented the autocomplete list from being hidden after
be283020e5e7805257d00e466bb849b969bd109eRyan Grove right-clicking on the list and then clicking elsewhere in the document.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove [Ticket #2531009]
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Added the ability to use a `<select>` node as a result source.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Function sources may now be either asynchronous or synchronous. Returning
be283020e5e7805257d00e466bb849b969bd109eRyan Grove an array of results from a function source will cause it to be treated as
be283020e5e7805257d00e466bb849b969bd109eRyan Grove synchronous (same as in 3.3.0). For async operation, don't return anything,
be283020e5e7805257d00e466bb849b969bd109eRyan Grove and pass an array of results to the provided callback function when the
be283020e5e7805257d00e466bb849b969bd109eRyan Grove results become available. [Ticket #2529974]
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Added a `sourceType` attribute to `AutoCompleteBase`, which may be used to
be283020e5e7805257d00e466bb849b969bd109eRyan Grove force a specific source type, overriding the automatic source type
be283020e5e7805257d00e466bb849b969bd109eRyan Grove detection. [Ticket #2529974]
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* The `scrollIntoView` config option is now much smarter. It will only scroll
be283020e5e7805257d00e466bb849b969bd109eRyan Grove if the selected result isn't fully visible. If the result is already
be283020e5e7805257d00e466bb849b969bd109eRyan Grove entirely within the visible area of the viewport, no scrolling will occur.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* A pre-existing `listNode` may now be specified at initialization time.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Added `subWordMatch` filters and highlighters. [Contributed by Tobias
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* The `this` object now refers to the current AutoComplete instance instead of
be283020e5e7805257d00e466bb849b969bd109eRyan Grove the window in list locators, text locators, filters, formatters,
be283020e5e7805257d00e466bb849b969bd109eRyan Grove highlighters, and requestTemplate functions.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Added an `originEvent` property to the event facade of `select` events. It
be283020e5e7805257d00e466bb849b969bd109eRyan Grove contains an event facade of the DOM event that triggered the selection if
be283020e5e7805257d00e466bb849b969bd109eRyan Grove the selection was triggered by a DOM event.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Small performance improvement for filters operating on empty query strings.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove [Ticket #2529949]
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Result list alignment is now updated both when results change and when
be283020e5e7805257d00e466bb849b969bd109eRyan Grove the window is resized instead of only when the list becomes visible. This
be283020e5e7805257d00e466bb849b969bd109eRyan Grove makes right-aligned lists with dynamic widths less awkward.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Fixed a bug that prevented CSS-based z-index values from taking effect on
be283020e5e7805257d00e466bb849b969bd109eRyan Grove the AutoComplete list and required the z-index to be set via JS. The
be283020e5e7805257d00e466bb849b969bd109eRyan Grove `.yui3-aclist` class now provides a default z-index of 1, and this can be
be283020e5e7805257d00e466bb849b969bd109eRyan Grove overridden with custom CSS. Specifying a `zIndex` attribute value via JS
be283020e5e7805257d00e466bb849b969bd109eRyan Grove no longer has any effect.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Fixed a bug that caused the IE6 iframe shim under the AutoComplete list to
be283020e5e7805257d00e466bb849b969bd109eRyan Grove be sized incorrectly the first time the list was displayed.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Fixed a bug in which the `requestTemplate` would sometimes be used as the
be283020e5e7805257d00e466bb849b969bd109eRyan Grove query instead of being appended to the source URL. This affected XHR and
be283020e5e7805257d00e466bb849b969bd109eRyan Grove JSONP sources that used both a `{query}` placeholder in the source string
be283020e5e7805257d00e466bb849b969bd109eRyan Grove and a custom `requestTemplate` value. [Ticket #2529895]
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Fixed a bug that caused the `requestTemplate` function to be called twice
be283020e5e7805257d00e466bb849b969bd109eRyan Grove for an XHR request instead of just once.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Fixed a bug in which JSONP, XHR, and YQL requests were cached solely based
be283020e5e7805257d00e466bb849b969bd109eRyan Grove on the query rather than on the complete request. This could result in
be283020e5e7805257d00e466bb849b969bd109eRyan Grove cache collisions when two requests with the same query but different
be283020e5e7805257d00e466bb849b969bd109eRyan Grove parameters (provided by a requestTemplate) were made. [Ticket #2530410]
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Fixed a bug that caused the `&` character to be treated as an up arrow
be283020e5e7805257d00e466bb849b969bd109eRyan Grove key in Firefox. [Ticket #2530455]
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Removed the "beta" label. Hooray!
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Initial release.