Tomas Kirda
2a68f0f86f
Merge pull request #626 from a-khajelou/patch-1
...
the custom parent bug for positioning
2017-12-05 09:26:03 -06:00
Tomas Kirda
a7e84a4799
Ignore "change" event when input value is set by plugin, fixes #669
2017-10-30 16:13:02 -05:00
Tomas Kirda
37bf4627f2
Correctly extend options.
2017-09-21 17:36:53 -05:00
Eckhard Rotte
5b3da47ca6
migrate dprecated $.isArray
to Array.isArray
...
`$.isArray` is deprecated in jQuery 3.2, so Array.isArray should be the way to go.
https://github.com/jquery/jquery/issues/2961
https://blog.jquery.com/2017/03/16/jquery-3-2-0-is-out/
2017-08-24 11:03:55 +02:00
Arash Khajelou
8ff0ac2a81
the custom parent bug for positioning
...
if you set the appendTo property to another tag instead of body, and if the container is scrollable, there will be a tiny bug for positioning on scrolled container, so if you add this line to the src , it will function well ! :)
2017-07-08 20:49:58 +04:30
Tomas Kirda
cadd05fae2
Default appendTo container to "body". Fixes #600
2017-04-03 16:58:02 -05:00
Tomas Kirda
91dc0d1b96
Do not overwrite existing autocomplete, fixes #599
2017-03-29 12:08:04 -05:00
Erik Schierboom
0927361647
Fix typo
2017-03-21 14:09:47 +01:00
Tomas Kirda
d556a873e7
Hide suggestions on blur, remove document click listeners. Fixes #447 .
2017-03-05 20:35:32 -06:00
Tomas Kirda
1eff0300eb
Remove <strong /> tag when formatting group, closes #450
2017-03-05 19:51:12 -06:00
Tomas Kirda
21b90eb7e6
Expose default options, closes #478
2017-03-05 19:28:49 -06:00
Tomas Kirda
43a31502c4
Call beforeRender even if there are no suggestions. Closes #507
2017-03-05 19:00:07 -06:00
Tomas Kirda
72b275819a
Set params after onSearchStart has been called, closes #561
2017-03-05 18:37:15 -06:00
Tomas Kirda
8d07d2cbdf
Change setInterval to setTimeout, closes #575
2017-03-05 18:33:29 -06:00
Tomas Kirda
0ba374d7e3
Rev for 1.3.0 release
2017-01-20 12:06:07 -06:00
Tomas Kirda
f756a441bf
Allow to override formatGroup callback via options, closes #505 , #387
2017-01-20 11:59:10 -06:00
Tomas Kirda
19a97900ec
Fix indentation: convert tabs to spaces
2017-01-20 11:45:42 -06:00
Sam Hermans
eb7be992c5
Fixed typo and newline
2017-01-20 18:33:00 +01:00
Sam Hermans
cfafe7ad6a
Introduce 'flex' width setting to auto size suggestion length
2017-01-20 17:22:37 +01:00
Mark McEver
c08a31dd78
Fixed a bug where the suggestion list briefly flashes when the selected suggestion is a prefix of another suggestion. Prior to this fix, the problem can be reproduced as follows:
...
1. Open the index.html demo (this url is convenient: https://rawgit.com/devbridge/jQuery-Autocomplete/master/index.htm )
2. In the country name field type "N" then select "Niger" from the list (this country is a prefix for "Nigeria").
3. Click the country name field again. The suggestion list will flash briefly then dissappear. The user must then click off of the field and back onto it to actually see the suggestion list.
2016-11-03 15:21:33 -05:00
Tomas Kirda
25de88ee6b
No need to restore value when preserveInput is set to true, fixes #521
2016-07-28 15:50:35 -05:00
Sebastian Weyrauch
2c81daeb01
set all widths with .css(), not with .width()
2016-07-27 07:52:54 +02:00
Sebastian Weyrauch
d9c4dd622c
also changed the width calculation in adjustContainerWidth
2016-07-27 07:38:07 +02:00
Sebastian Weyrauch
69d2f1a78d
switched to box-sizing border-box and removed the expected 1px border from the width calculation in javascript
2016-07-27 07:04:17 +02:00
stonio
b09eab6629
JS - Replace 'foo.length === 0' by '!foo.length'
...
Saving few bytes by replacing 'foo.length === 0' by '!foo.length' in JavaScript code
2016-07-06 16:53:00 +02:00
Tomas Kirda
56c352ab01
Merge pull request #509 from stonio/patch-3
...
Reduce JSLint Warnings
2016-07-06 09:12:37 -05:00
stonio
22e8d7b1a5
Shorter regex in escapeRegExChars
...
Removed unnecessary backslash characters.
Slash character is not a regex special character and does not need to be escaped.
2016-07-06 15:06:21 +02:00
stonio
1d733050d4
Reduce JSLint warnings
...
Tested with http://www.jslint.com
2016-07-06 12:13:27 +02:00
stonio
4e63cf82cf
Use Jquery noop function
...
Use jQuery noop function to be consistent with other functions.
2016-06-21 16:25:16 +02:00
Tomas Kirda
3f53453499
Adding suggestions data variable to beforeRenderer callback, fixes #489
2016-06-14 16:16:07 -05:00
Tomas Kirda
615fd80030
Pass result index to formatResult callback, resolves #485
2016-05-30 12:39:47 -05:00
Gouigouix
7bf1127bc8
Update typings definition file for TypeScript.
2016-05-19 15:26:29 +02:00
Tomas Kirda
c4d42b7e68
Merge pull request #188 from markus-k/master
...
Return false in click handler to prevent default behaviour.
2016-04-14 08:18:32 -05:00
Tomas Kirda
e572acf56f
Do not try to highlight suggestion if current value is empty, resolves #434
...
Prevents inserting strong tag after each character when input value is empty.
2015-11-01 19:25:25 -06:00
Tomas Kirda
fef68b6e4c
Show autocomplete when input gets focus, fixes #319 , #391
...
Triggers autocomplete lookup if value is greater than minChars.
2015-11-01 19:16:18 -06:00
Tomas Kirda
082248691f
Only restore currentValue if suggestions are visible, fixes #408
2015-09-16 10:48:20 -05:00
Tomas Kirda
cf43df5bd1
Restore original input value when clicking away without making selection, fixes #408
2015-09-07 12:42:15 -05:00
Tomas Kirda
3328147b93
Fix issue of highlighting string when it contains html specific characters, fixes #385
2015-07-29 15:51:36 +03:00
Tomas Kirda
94600795e7
When input receives focus trigger onValueChange only if minChars equals 0
2015-06-04 12:58:04 -05:00
Tomas Kirda
bd25b4d992
Pass original query to transformResult callback
2015-06-04 12:33:32 -05:00
Tomas Kirda
ab1c27b673
Do not trigger select on valid input when multiple suggestions are available, fixes #361
2015-05-16 12:03:08 -05:00
Tomas Kirda
d7b487cc73
Abort ajax request on blur, fixes #357
2015-05-03 18:30:31 -05:00
André Fiedler
2952f328cd
Update jquery.autocomplete.js
2015-03-24 10:14:06 +01:00
Tomas Kirda
3dd9add2ab
Fix for incorrect highlighting of first item, if using groupBy. Fixes #326
2015-03-13 11:11:37 -05:00
Tomas Kirda
451c5efe95
White space adjustments.
2015-03-04 10:56:45 -06:00
Tomas Kirda
8e6812d603
Fix white space.
2015-03-04 10:46:03 -06:00
Tomas Kirda
a2c472853b
Merge branch 'onhide-callback-option' of https://github.com/stffndtz/jQuery-Autocomplete into stffndtz-onhide-callback-option
...
Conflicts:
dist/jquery.autocomplete.js
dist/jquery.autocomplete.min.js
readme.md
spec/autocompleteBehavior.js
src/jquery.autocomplete.js
2015-03-04 10:32:47 -06:00
Tomas Kirda
54f24951e3
Implement preserve input option. Closes #164 .
2014-12-03 14:14:48 -06:00
Tomas Kirda
f2e13bdb5b
Merge pull request #275 from danielgroves/patch-firefox-android
...
Fix for Firefox Android not updating
2014-11-24 19:57:03 -06:00
Tomas Kirda
805b45ccb7
Allow callback function to be set as lookup in options. Fixes #227
2014-11-24 19:36:47 -06:00