ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan GroveAutoComplete Change History
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove===========================
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
67dad868b77ee156c32e10f4723686bcece665f2Ryan Grove3.5.0
67dad868b77ee156c32e10f4723686bcece665f2Ryan Grove-----
67dad868b77ee156c32e10f4723686bcece665f2Ryan 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).
e58e329a62c99b6967a791762117392e5af609deRyan Grove
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]
67dad868b77ee156c32e10f4723686bcece665f2Ryan Grove
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.
4e21d9ace0f1e852eddbcea14f5becdce1d8dba9Ryan Grove
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.
200e1189ccbb1d6a1ddbef2e9320535f4a1af440Ryan Grove
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.
fc948858031e489d09d1d8c950ec74a88119cea6Ryan Grove
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
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]
216e136bc23466fa2a8deeed50b267dc10379daaRyan Grove
12cd51e378139aa4d121b59664c7160c7c86ed35Ryan Grove* Fixed a bug that prevented the list from being re-aligned when the window was
12cd51e378139aa4d121b59664c7160c7c86ed35Ryan Grove resized.
12cd51e378139aa4d121b59664c7160c7c86ed35Ryan Grove
67dad868b77ee156c32e10f4723686bcece665f2Ryan Grove
3b176d01148442acf4e41c28739a6d8acbf6d32bRyan Grove3.4.1
3b176d01148442acf4e41c28739a6d8acbf6d32bRyan Grove-----
3b176d01148442acf4e41c28739a6d8acbf6d32bRyan Grove
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 desired.
3b176d01148442acf4e41c28739a6d8acbf6d32bRyan Grove
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]
7f9dfffb92e442a6d99b2becef29e6f4d8db4edeRyan Grove
3b176d01148442acf4e41c28739a6d8acbf6d32bRyan Grove
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove3.4.0
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove-----
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Added the ability to use a `<select>` node as a result source.
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
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]
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
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]
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
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.
9d22c51f3040a96aae2a15ba6511d2581be5b507Ryan Grove
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* A pre-existing `listNode` may now be specified at initialization time.
a8f7df1dd010d9710700d23416df1df8a3fb9604Ryan Grove
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Added `subWordMatch` filters and highlighters. [Contributed by Tobias
be283020e5e7805257d00e466bb849b969bd109eRyan Grove Schultze]
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
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.
c8f9282d0b684a40b32109c3de35b7fa6c534699Ryan Grove
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.
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Small performance improvement for filters operating on empty query strings.
be283020e5e7805257d00e466bb849b969bd109eRyan Grove [Ticket #2529949]
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
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.
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
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.
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
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.
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
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]
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Fixed a bug that caused the `requestTemplate` function to be called twice
be283020e5e7805257d00e466bb849b969bd109eRyan Grove for an XHR request instead of just once.
4397b5a5bcaf8a291905306dbcc7f2b0fd2e60eeRyan Grove
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]
a78f013cfc225b57730e82e15135c71d55857355Ryan Grove
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Fixed a bug that caused the `&` character to be treated as an up arrow
be283020e5e7805257d00e466bb849b969bd109eRyan Grove key in Firefox. [Ticket #2530455]
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Removed the "beta" label. Hooray!
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove3.3.0
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove-----
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove
be283020e5e7805257d00e466bb849b969bd109eRyan Grove* Initial release.