Skip to content

Commit

Permalink
prevent form submittion when adding value from enter key
Browse files Browse the repository at this point in the history
added isArray() polyfill

removed deprecated jQuery methods to trigger/listen to events

added 'requestHeaders' option (thks @ozgurg)

fix when handling the value limit

fix when toggling values

improved accessibility (WIP)
  • Loading branch information
sergiodlopes committed Feb 13, 2021
1 parent a84adef commit f7ac49e
Show file tree
Hide file tree
Showing 9 changed files with 131 additions and 58 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.code-workspace
prepros.config
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ Check out the [examples and documentation](http://projects.sergiodinislopes.pt/f

## Roadmap

- Improve accessibility
- Allow the search to be disabled on flexdatalist and just use the given list (from server-side)
- Use CSS grid to list multiple selected values
- Regex in JS has bad support for special and accented characters, I'll try to make some improvements __(it works since v2.3.0, but it won't highlight the word, though)__
- Make it jQuery independent (this will take a while to make it to a release)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-flexdatalist",
"version": "2.2.4",
"version": "2.3.0",
"main": ["jquery.flexdatalist.js"],
"dependencies": {
"jquery": ">=1.8"
Expand Down
1 change: 1 addition & 0 deletions jquery.flexdatalist.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
border-radius: 3px;
color: #444;
line-height: 20px;
float: left;
}
.flexdatalist-multiple li.toggle {
cursor: pointer;
Expand Down
174 changes: 120 additions & 54 deletions jquery.flexdatalist.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jquery.flexdatalist.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion jquery.flexdatalist.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions jquery.flexdatalist.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jQuery.Flexdatalist",
"description": "jQuery Datalist Autocomplete plugin",
"version": "2.2.4",
"version": "2.3.0",
"repository": {
"type": "git",
"url": "https://github.com/sergiodlopes/jquery-flexdatalist.git"
Expand Down

0 comments on commit f7ac49e

Please sign in to comment.