1
AutoComplete Change History
2
===========================
7
* Added an `enableCache` config attribute. Set this to `false` to prevent the
8
built-in result sources from caching results (it's `true` by default).
10
* The `requestTemplate` value is now made available to YQL sources via the
11
`{request}` placeholder, which works just like the `{query}` placeholder. Use
12
this when you need to customize the query value (such as double-escaping it)
13
used in the YQL query. [Ticket #2531285]
15
* Changing the value of the `value` attribute programmatically will now also
16
update the value of the `query` attribute and will fire a `clear` event when
17
the value is cleared (thus clearing results), but still will not fire a
18
`query` event. Use the `sendRequest()` method to trigger a query
21
* Added a workaround for an IE7 bug that would cause the result list to appear
22
empty when it first becomes visible.
24
* Fixed a bug that caused a scrollable result list to be hidden when the user
25
clicked and dragged on the scrollbar and then released the mouse button while
26
the cursor was outside the list region.
28
* Fixed a bug that caused the list to disappear on mouseover if the input field
29
received focus before the AutoComplete widget was initialized
32
* Fixed a bug that could prevent results from being selected via mouse click
33
after a result was selected via the tab key. [Ticket #2531684]
35
* Fixed a bug that prevented the list from being re-aligned when the window was
42
* The "combobox" ARIA role is no longer automatically added to an
43
AutoCompleteList input node. After consulting with the Y! Accessibility
44
team, we felt that the combobox role doesn't accurately represent the
45
out-of-the-box interactions that AutoCompleteList provides. Implementers can
46
still apply this role (or any other ARIA role) to the input node manually if
49
* Fixed a bug that prevented the autocomplete list from being hidden after
50
right-clicking on the list and then clicking elsewhere in the document.
57
* Added the ability to use a `<select>` node as a result source.
59
* Function sources may now be either asynchronous or synchronous. Returning
60
an array of results from a function source will cause it to be treated as
61
synchronous (same as in 3.3.0). For async operation, don't return anything,
62
and pass an array of results to the provided callback function when the
63
results become available. [Ticket #2529974]
65
* Added a `sourceType` attribute to `AutoCompleteBase`, which may be used to
66
force a specific source type, overriding the automatic source type
67
detection. [Ticket #2529974]
69
* The `scrollIntoView` config option is now much smarter. It will only scroll
70
if the selected result isn't fully visible. If the result is already
71
entirely within the visible area of the viewport, no scrolling will occur.
73
* A pre-existing `listNode` may now be specified at initialization time.
75
* Added `subWordMatch` filters and highlighters. [Contributed by Tobias
78
* The `this` object now refers to the current AutoComplete instance instead of
79
the window in list locators, text locators, filters, formatters,
80
highlighters, and requestTemplate functions.
82
* Added an `originEvent` property to the event facade of `select` events. It
83
contains an event facade of the DOM event that triggered the selection if
84
the selection was triggered by a DOM event.
86
* Small performance improvement for filters operating on empty query strings.
89
* Result list alignment is now updated both when results change and when
90
the window is resized instead of only when the list becomes visible. This
91
makes right-aligned lists with dynamic widths less awkward.
93
* Fixed a bug that prevented CSS-based z-index values from taking effect on
94
the AutoComplete list and required the z-index to be set via JS. The
95
`.yui3-aclist` class now provides a default z-index of 1, and this can be
96
overridden with custom CSS. Specifying a `zIndex` attribute value via JS
97
no longer has any effect.
99
* Fixed a bug that caused the IE6 iframe shim under the AutoComplete list to
100
be sized incorrectly the first time the list was displayed.
102
* Fixed a bug in which the `requestTemplate` would sometimes be used as the
103
query instead of being appended to the source URL. This affected XHR and
104
JSONP sources that used both a `{query}` placeholder in the source string
105
and a custom `requestTemplate` value. [Ticket #2529895]
107
* Fixed a bug that caused the `requestTemplate` function to be called twice
108
for an XHR request instead of just once.
110
* Fixed a bug in which JSONP, XHR, and YQL requests were cached solely based
111
on the query rather than on the complete request. This could result in
112
cache collisions when two requests with the same query but different
113
parameters (provided by a requestTemplate) were made. [Ticket #2530410]
115
* Fixed a bug that caused the `&` character to be treated as an up arrow
116
key in Firefox. [Ticket #2530455]
118
* Removed the "beta" label. Hooray!