Commit graph

406 commits

Author SHA1 Message Date
Jay Kid 0b3cf1a355 feat: implement custom properties for items and choices
+ Added unit tests for both choice and item reducers
+ Had to add some visually unpleasant undefineds, sorry :P
2017-06-28 11:11:02 +02:00
Josh Johnson 1eaceb1345 Version 2.8.5 2017-06-27 16:39:08 +01:00
Josh Johnson 8485137121 More appropriate naming 2017-06-27 16:35:46 +01:00
Josh Johnson f6ea9224e2 Introduce search render limit 2017-06-27 16:30:08 +01:00
Josh Johnson cd9797e9d0 Housekeeping 2017-06-27 15:54:22 +01:00
Josh Johnson 098e191771 Resolve isUnique test + minor fixes 2017-06-27 13:11:31 +01:00
Josh Johnson b1cfa5441c Use classnames lib for generating class lists 2017-06-27 12:42:01 +01:00
Maxim Mig 9d4102bc03 Typo correction: this.config.search -> this.config.searchEnabled. Error in action: https://www.screencast.com/t/e23Ti7eT7J 2017-06-22 18:31:36 +03:00
Josh Johnson d28ad92033 Version 2.8.4 2017-06-03 12:38:33 +01:00
Josh Johnson 38761ca4ae Merge pull request #176 from adamsro/bugfix/maintain-container-focus-on-escape
Refocus outer container when dropdown is closed via escape key
2017-06-03 12:36:24 +01:00
Josh Johnson 9020740f16 Don't re-assign arg 2017-06-03 12:04:46 +01:00
Pablo Bernal 8d481b4f2c Accessiblity improvements: usage of activedescendant to read options, allow arrow keys to browse options when screen reader is on, fix for aria-selected 2017-06-02 15:34:07 -05:00
Marshall Adams c3166d6e60 Refocus outer container when dropdown is closed via escape key 2017-05-30 11:35:34 -07:00
Marshall Adams e4df3a8cb7 Merge updated master into bugfix 2017-05-30 11:11:19 -07:00
Marshall Adams 110796e25f Check value is type string before calling trim() 2017-05-30 10:43:25 -07:00
Josh Johnson 3b203d892b Version 2.8.3 2017-05-29 11:12:48 +01:00
Josh Johnson 75e5801585 Revert breaking focus PR 2017-05-29 11:11:50 +01:00
Josh Johnson 1350c6a9ac Version 2.8.2 2017-05-18 17:57:35 +01:00
Josh Johnson bc48904765 Silent config option 2017-05-18 17:56:29 +01:00
Josh Johnson 4ad0406ad5 Housekeeping 2017-05-18 12:20:01 +01:00
Josh Johnson c7d2d8beb6 Merge branch 'fix/ie-on-blur-fix' of https://github.com/rstacruz/Choices into rstacruz-fix/ie-on-blur-fix 2017-05-18 11:57:15 +01:00
Josh Johnson f9f4400d7d Check duplicate items for multiple select inputs too 2017-05-18 11:55:45 +01:00
Josh Johnson f64cf87801 Move away from one line returns 2017-05-18 09:36:33 +01:00
Josh Johnson fb13c49990 Housekeeping 2017-05-18 09:29:18 +01:00
Josh Johnson be3b574105 Search floor equal to or greater to 2017-05-18 09:17:51 +01:00
Rico Sta. Cruz aad2e7a858
Fix dropdown hiding on blur 2017-05-16 18:31:06 +08:00
Josh Johnson c8e9ce9f27 Version 2.8.1 2017-05-11 15:12:14 +01:00
Josh Johnson 43f618822d Revert add items functionality - buggy 2017-05-11 15:11:26 +01:00
Adam Mockor cdc06efbf9 do not remove flippedState class if shouldFlip !== true 2017-05-02 15:17:57 +02:00
Adam Mockor dfafebc50a use dropdown offsetHeight instead of getBoundingClientRect.height 2017-05-02 15:16:53 +02:00
Josh Johnson 01dad3ac77 Version 2.7.8 2017-04-07 08:51:41 +01:00
Josh Johnson 99a1eb5e3a Rename sortFields to searchFields for clarity 2017-04-07 08:49:15 +01:00
Manuel Madeira 7ec1e5310c Add option to remove search filter choices but emit the search event. 2017-04-06 14:42:11 +01:00
Adam Mockor 6d894d4352 select-one input is now not focusable in disabled state (fixes #137) 2017-04-04 12:58:16 +02:00
Josh Johnson 7255fa42ce Version 2.7.7 2017-03-28 14:42:35 +01:00
Josh Johnson 7efd189c7d Resolve broken cancel buttons 2017-03-28 14:41:12 +01:00
Josh Johnson 779d2e0292 Resolve ARIA role bug 2017-03-28 14:08:38 +01:00
Bohdan Kostko c33a89501a naming change 2017-03-12 14:21:00 +01:00
Bohdan Kostko 9df1310a52 lint fixes 2017-03-12 14:19:27 +01:00
Bohdan Kostko c21893e6fa Fix item custom template select bug 2017-03-12 14:17:46 +01:00
Josh Johnson 13afb13be7 Version 2.7.6 2017-03-08 15:15:11 +00:00
Josh Johnson 63b50f5c0f Version 2.7.6 2017-03-08 15:14:09 +00:00
Samuel Jack 00af5279e9 Added showDropdown/hideDropdown events 2017-03-02 16:13:53 +00:00
Josh Johnson fbb456f9b5 Version 2.7.5 2017-03-01 19:10:46 +00:00
Josh Johnson 930f84c005 Merge pull request #121 from rstacruz/patch-1
Fix choices.css crash with wicked_pdf
2017-03-01 19:09:28 +00:00
Josh Johnson eec8a667ad Add label to highlighting events too 2017-03-01 19:07:22 +00:00
alexandre.baillif@kosmos.fr 8c6fbdd97a Add example in index.html + refactoring 2017-03-01 15:00:22 +01:00
alexandre.baillif@kosmos.fr b8979563ab Adding generated sources 2017-03-01 13:43:31 +01:00
alexandre.baillif@kosmos.fr 34e8a430e1 Add feature of passing the label through the event of add/remove item 2017-03-01 13:41:01 +01:00
Rico Sta. Cruz 3bca2b2c98 Fix choices crash with wicked_pdf 2017-03-01 17:43:07 +08:00
Josh Johnson a895ef9f6a Correct version number - Version 2.7.4 2017-02-21 20:48:51 +00:00
Josh Johnson ea4c5ae1f8 Version 2.7.3 2017-02-21 20:47:12 +00:00
Josh Johnson e35ef8040c Comment 2017-02-17 09:27:01 +00:00
Josh Johnson ca33f15504 Version 2.7.3 2017-02-17 09:26:08 +00:00
Josh Johnson c63d025e96 Minor improvements to type checking 2017-02-17 09:23:52 +00:00
Josh Johnson f485814dd0 Version 2.7.2 2017-02-10 09:02:10 +00:00
Josh Johnson 6abeb65c95 Remove loading state if empty array passed to .ajax() 2017-02-10 09:01:20 +00:00
Josh Johnson ba0de5c679 Version 2.7.1 2017-02-09 13:50:14 +00:00
Josh Johnson ccfad3cf9b Ability to pass function to no choice/result notices 2017-02-09 13:49:30 +00:00
Josh Johnson 473f010998 Version 2.7.0 2017-02-05 09:46:37 +00:00
Josh Johnson 8c2d951947 Merge remote-tracking branch 'origin/master' 2017-02-05 09:44:14 +00:00
Josh Johnson cfd03b9302 Create unique group id if none passed 2017-02-05 09:41:59 +00:00
Mike Robertson c3c31edc04 Throw an error if id field is missing from group object at addGroup function invocation. 2017-01-31 11:30:21 -05:00
Josh Johnson 24452331ed Merge pull request #107 from StephaneTrebel/master
Add default type for remove item buttons
2017-01-31 09:43:07 +00:00
Flaoua e738e1ad46 Add type 'button' for remove item buttons 2017-01-31 05:15:01 +01:00
Mike Robertson b0e96d7038 use result.id instead of the index in all places that do that 2017-01-30 14:48:55 -05:00
Josh Johnson 449baf2a0a Version 2.6.2 2017-01-26 09:16:21 +00:00
Arthur b557de3400 Accept page up/down to skip to the first/last options 2017-01-25 11:16:58 -02:00
Paul Laros 24c6803391 Added resetScrollPosition option 2017-01-12 15:13:21 +01:00
Josh Johnson 677e1aa58f Build 2017-01-01 16:02:51 +00:00
Josh Johnson 7acf306aff Merge branch 'feature/fuse-config' of github.com:jshjohnson/Choices 2017-01-01 16:01:51 +00:00
Josh Johnson 3a839260cd Build 2017-01-01 16:01:35 +00:00
Josh Johnson 82a2a37298 Update read me 2017-01-01 16:00:31 +00:00
Josh Johnson d0b78438bb Expose fuse options in config 2017-01-01 15:59:43 +00:00
Josh Johnson ec0d336072 Version 2.6.0 2017-01-01 15:32:09 +00:00
Rico Sta. Cruz 135ca8c1f8
Allow empty values 2016-12-29 15:06:42 +08:00
Josh Johnson 6c29011d9b Rebuild 2016-11-29 09:50:03 +00:00
Yuri S 0b9651aa83 Fix Pressing enter submits the form #54 2016-11-28 18:12:45 +05:00
Josh Johnson 4e8b66af80 Correct version name in file 2016-11-16 10:55:05 +00:00
Josh Johnson 325a27cac2 Update documentation 2016-11-07 14:05:31 +00:00
fabien.leconte c57d6c76fc - Callback calls using 'call' to force 'this' to the instance of Choices that triggered the function 2016-11-07 11:37:47 +01:00
fabien.leconte 8be12c20cd - Add support of custom labels for i18n purpose 2016-11-07 11:27:04 +01:00
Josh Johnson 8fabf6788b Ensure Require.js export works 2016-10-28 21:59:43 +01:00
Josh Johnson 1fcd9dea0d Cache object lookups 2016-10-26 15:43:15 +01:00
Josh Johnson d6f34fc70e Merge remote-tracking branch 'origin/master' 2016-10-22 21:05:33 +01:00
Josh Johnson c620f2c28a Build 2016-10-22 21:05:29 +01:00
Josh Johnson ca0541b91a Function to handle input width sizing + minor tweaks 2016-10-22 21:04:13 +01:00
Josh Johnson 378c6dbafa Resolve init/destroy bug 2016-10-22 20:15:28 +01:00
Nathaniel Watson af970ec776 Fix noResultsText typo (round -> found) 2016-10-21 17:43:32 +13:00
Josh Johnson c867558dcd Update read me + default value for replaceChoices 2016-10-19 07:35:42 +01:00
Josh Johnson de33f6b6e3 Ability to remove choices when setting + callback improvements 2016-10-19 07:33:38 +01:00
Josh Johnson 377c61fb0c Version 2.3.0 2016-10-18 19:41:05 +01:00
Josh Johnson 5c04638bef Group value callback tweaks 2016-10-18 19:39:49 +01:00
Josh Johnson 5cc10cdcbb Pass group value to callbacks 2016-10-18 19:23:22 +01:00
Josh Johnson 4e232e8931 Reduce specificity of group headings class 2016-10-18 18:55:49 +01:00
Josh Johnson 9e9d820f56 Output expanded css 2016-10-18 18:52:48 +01:00
Josh Johnson b3071cc0dd Webpack UMD wrapper 2016-10-18 14:15:00 +01:00
Josh Johnson b73893c963 Merge branch 'pr-setchoices' of https://github.com/froggiefab/Choices into froggiefab-pr-setchoices 2016-10-12 13:31:30 +01:00
Zach Schnackel e73575fb33 Shorten list style declaration
According to http://stackoverflow.com/questions/19889069/whats-the-difference-between-list-style-type-and-list-style `list-style` can be substituted for `list-style-type` if it's meant to replace all relevant sub-styles (position and image).
2016-10-11 20:23:22 -04:00
fabien.leconte aa04aec6e1 - Add support of custom properties names for the "_addGroup" function
- Handle groups in ajax callback
2016-10-10 14:17:35 +02:00