Commit graph

307 commits

Author SHA1 Message Date
Andrew Whalley dba6093297 Added keyCode to choice objects 2017-07-19 13:48:46 -04:00
Maxim Mig d8e8e1ab97 Backup & recover original styles: added test 2017-07-17 13:35:50 +03:00
Maxim Mig c88f00513e Persisting original styles of the passed element (we don't need to store null if there are no styles at all). 2017-07-15 00:53:43 +03:00
Maxim Mig 8e8df3e455 Persisting original styles of the passed element. 2017-07-15 00:31:45 +03:00
Maxim Mig bc1715125d Various minor corrections. 2017-07-13 17:59:33 +03:00
Josh Johnson 89289ab692 Remove errors to reduce file size 2017-07-13 09:01:24 +01:00
Maxim Mig 7b294a80b6 Fix handling 'renderSelectedChoices' config option. Added two tests. 2017-07-12 13:21:35 +03:00
Maxim Mig ef661f4615 Added two config options: shouldSortItems and renderSelectedChoices. 2017-07-11 08:36:10 +03:00
Jay Kid af9feb3e2c fix: remove extra 'undefined' argument when calling _addItem from _addChoice
+ Added integration-like test
2017-06-30 15:45:47 +02:00
Josh Johnson 4370616519 Documentation + housekeeping + ensure custom props are passed to preset items 2017-06-29 08:40:56 +01:00
Jay Kid 600f59a440 fix: add pause between "Remove item" and the value of the item by adding a colon
Helps understanding when using VoiceOver
2017-06-28 11:12:45 +02:00
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 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 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 75e5801585 Revert breaking focus PR 2017-05-29 11:11:50 +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 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 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 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
Samuel Jack 00af5279e9 Added showDropdown/hideDropdown events 2017-03-02 16:13:53 +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 34e8a430e1 Add feature of passing the label through the event of add/remove item 2017-03-01 13:41:01 +01: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