aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/autocomplete.js
Commit message (Collapse)AuthorAgeFilesLines
* 1.13.01.13.0Michał Gołębiowski-Owczarek2021-10-071-2/+2
|
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-071-3/+6
| | | | | Fixes #15393 Closes gh-1958
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of the changes: * Build: Add jQuery 3.2.0-3.4.1 to versions UI can be tested against * Build: Load jQuery & Migrate via HTTPS * Build: Add package-lock.json to .gitignore * Build: Update jQuery Migrate from 3.0.0 to 3.1.0 * Build: Allow to run tests against jQuery 3.x-git * Build: Fix formatting according to JSCS rules * Build: Disable JSCS for the inlined jQuery Color * All: Switch from $.isArray to Array.isArray (jQuery.isArray will be removed in jQuery 4.0) * All: Switch from `$.isFunction( x )` to `typeof x === "function"` (jQuery.isFunction will be removed in jQuery 4.0) * All: Inline jQuery.isWindow as it'll be removed in jQuery 4.0 * Effects: Fix a timing issue in a variable declaration. Previously, a jQuery object was created, chained & assigned to a variable that was then accessed in a callback used inside of this chained definition. Due to a timing difference in when the callback fired for the first time in latest jQuery master, it was being called before the variable was defined. * Tests: Make dialog & draggable unit tests less strict (newest jQuery returns fractional results in some cases, making comparisons fail when there's a tiny difference) * All: Migrate from $.trim to bare String.prototype.trim (jQuery.trim will be deprecated in jQuery 3.5) Closes gh-1901
* All: Remove uses of `jQuery.proxy()`Scott González2017-05-171-2/+2
| | | | | Ref #15160 Closes gh-1813
* Autocomplete: Fix IE/Edge scrolling issuesRyan Oriecuia2017-01-251-23/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IE11 and scrolling autocompletes didn't get along great; this should help fix their relationship. When you click on an autocomplete scrollbar in IE11, the menu temporarily gains focus, which caused a couple problems. 1. Depending on how long you clicked, the dropdown could close. 2. Scrolling down by clicking the scrollbar's down arrow would misbehave. The list would pop back up to the top with the first item selected. We can fix both problems by modifying the focus/blur handling a bit. 1. There is a flag to instruct the control to ignore blurs, but it was getting cleared too quickly; when the code refocused the input after it was blurred, IE would send *another* blur event, which wasn't getting ignored and would close the dropdown. We now wait for the focus/blur pair to process before clearing the flag. 2. We remove the tabindex from the dropdown menu, which prevents menu's focus handler from firing. When you focus a menu, it will select the first menu item if none are selected. Selecting a menu item will scroll it into view if it's not visible. This combination of behaviors was causing the strange behavior when attempting to scroll down. I couldn't figure out a way to write a unit test for this, since it's IE only and seems to require user interaction. You can verify the previous behavior (and the fix) on `demos/autocomplete/maxheight.html` Fixes #9638 Closes gh-1785
* Autocomplete: Work around `isContentEditable` bug in ChromeScott González2016-02-161-1/+19
| | | | | Fixes #14917 Closes gh-1673
* All: Fix manifest issues for categories and CSS dependenciesJörn Zaefferer2015-10-231-3/+3
| | | | | | | Collapses "UI Core" and "Core" into just "Core". Fixes bad paths for CSS dependencies. Regressed when moving widgets into the widgets subfolder.
* Autocomplete: Close the menu on any outside interactionsScott González2015-10-161-18/+23
| | | | | | | | | This ensures that the menu will close if the user interacts with a draggable, resizable, etc. element since those interactions don't change focus. Ref #6642 Closes gh-1614
* Autocomplete: Use a `div` instead of a `span` for the live regionScott González2015-09-181-1/+1
| | | | Fixes #14587
* Autocomplete: Style updatesAlexander Schmitz2015-09-111-0/+14
| | | | Ref #14246
* Autocomplete: Style updatesAlexander Schmitz2015-08-211-9/+9
| | | | | Ref #14246 Ref gh-1588
* Menu: Move menu into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Autocomplete: Move autocomplete into widgets folderAlexander Schmitz2015-08-081-0/+645
Ref #13885