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