Commit graph

1070 commits

Author SHA1 Message Date
Konstantin Vyatkin bc8a044ab1 Chore: Use GitHub actions (#661)
* run cypress on github action

* add lint action

* add test and coverage action

* upgrade testing dependencies

* upgrade linting dependencies

* add bundlesize action

* fix env name, prevent husky

* add npm publish step

* upgrade cypress to latest non-breaking version

* fix postversion script

* don't share full token with bundlesize

* nicer version commit

* add preversion script, use `--atomic` and don't publish tests

* enforce tagged and signed version

* restored bump-cache
2019-10-21 17:20:39 +01:00
Benoît Rouleau 31ef5bb065 Improve callbackOnCreateTemplates example (#647)
Shows how to add the placeholder class(es) when the item is the placeholder.
2019-10-21 10:51:53 +01:00
Konstantin Vyatkin 7de0887e7d use templates from instance, fixes #461 (#660)
* use template from instance

* adjust test

* fix lint

* try to move `this` out of loop

* fixes late init bound
2019-10-21 10:48:49 +01:00
Josh Johnson 4e8842d013 Build 2019-10-15 09:50:12 +01:00
Josh Johnson b8074733c9 7.0.2 2019-10-15 09:49:42 +01:00
Josh Johnson 98206e899d Build 2019-10-15 09:49:38 +01:00
Josh Johnson 659c3545fb Bump demo version 2019-10-15 09:47:00 +01:00
Josh Johnson 97f91c240c Remove github actions 2019-10-15 09:33:19 +01:00
Josh Johnson 7022c238fd Add build and test stage 2019-10-15 09:01:31 +01:00
Josh Johnson bbeb556a48 Lower version to 10 in npmpublish 2019-10-15 08:57:39 +01:00
Josh Johnson bb0736e8fc
Update npmpublish.yml 2019-10-15 08:53:50 +01:00
Josh Johnson b8f5bd1680 7.0.1 2019-10-15 08:50:23 +01:00
Josh Johnson 6c1e02fa82
Update npmpublish.yml 2019-10-15 08:49:06 +01:00
Josh Johnson f872caf1f8
Update npmpublish.yml (#654) 2019-10-15 08:47:20 +01:00
Josh Johnson 585859f4cd
Update and rename .github/workflows/npmpublish.yml to npmpublish.yml 2019-10-15 08:46:34 +01:00
Chris DeLuca e7d775e2ae Use event delegation (#644)
Instead of attaching a new root-level event listener for bubbling events
for every choices instance, use a simple event delegation script to
handle each event type.

Each event callback function already is coded as if it were fully
delegated, since the events are attached at the document level, so
no changes are needed to detect which element is being called.

Note that focus and blur event do not bubble, so they have been left as
they are.

Also note that the event delegation uses an IIFE purposely instead of
ES6 modules, since the event list should be globally cached, and it
doesn't make sense to instantiate a new scope for each instance (then
we're back where we started!)

fix #643
2019-10-15 08:42:31 +01:00
bradwade 5cf226f166 ADA accessibility label fixes (#642)
* Update incorrect 'label-for' in demo index.html file.

* Use placeholder value for search input aria label.

* Updated input template test.

* Adding the compiled, uglified JS.
2019-10-10 09:49:00 +01:00
Tomakava 37db45e651 fix unhighlightAll performance issue (#648) 2019-10-03 09:41:53 +01:00
Josh Johnson 57807e88f6 Resolving broken CI 2019-10-02 09:13:08 +01:00
Duane Cilliers 589578f420 Fix types on Templates interface function signatures (#619)
* Fix types on Templates interface method signatures

* Add missing type fixes
2019-10-02 09:08:34 +01:00
Alex Webb 39b6eed395 Resolve issue in utils::calcWidthOfInput() (#608) 2019-10-02 09:03:38 +01:00
Dieter Luypaert 061219cb00 Add type info for choice, group, and item (#609)
Refs: 551
2019-07-03 10:43:57 +01:00
Jason Cooke 62ccd923ff docs: fix typos (#605) 2019-06-30 20:02:52 +01:00
David Kennell 43e670d02d fix typo (#596) 2019-05-28 18:52:26 +01:00
Josh Johnson 0829899284
Update stale.yml 2019-05-21 13:13:08 +01:00
Josh Johnson 7540d39f95 Merge branch 'stof-remove_polyfill' 2019-03-29 09:13:10 +00:00
Josh Johnson 67382a3f31 Use v3 of polyfill 2019-03-29 09:12:29 +00:00
Josh Johnson 899e4b16bb Merge branch 'DarrenMack-OD-master' 2019-03-29 09:09:27 +00:00
Josh Johnson 63e5b51683 Update polyfill url 2019-03-29 09:08:42 +00:00
Josh Johnson 3c05016920 Merge branch 'master' of https://github.com/DarrenMack-OD/Choices into DarrenMack-OD-master 2019-03-29 08:57:38 +00:00
Josh Johnson 0580a0433f 7.0.0 2019-03-29 08:56:12 +00:00
Josh Johnson fee575d6d9 Merge branch 'Spone-improve-clear-choices' 2019-03-29 08:56:05 +00:00
Darren Mackintosh b08a5412f9
Update text.html 2019-03-15 17:18:58 +00:00
Darren Mackintosh f32995367b
Update select-one.html 2019-03-15 17:18:23 +00:00
Darren Mackintosh 201b3c8ada
Updated version numbers 2019-03-15 17:17:43 +00:00
Darren Mackintosh 9c021408fa
Update choices.test.js 2019-03-15 16:57:57 +00:00
Darren Mackintosh aceb838988
Rolled back webpack changes in Choices.js 2019-03-15 16:57:35 +00:00
Darren Mackintosh 03a45094b7
Update index.test.js 2019-03-14 12:31:29 +00:00
Darren Mackintosh 92680c0dc0
Update index.js 2019-03-14 12:20:43 +00:00
Darren Mackintosh da87fa07cf
Update choices.test.js 2019-03-14 12:13:06 +00:00
Darren Mackintosh 2247eff08a
Added linting exclusion for WebPack 2019-03-14 12:03:22 +00:00
Darren Mackintosh 5018e4a7d4
Updated reference to choices
Because I have attempted to fix the WebPack issue with choices, I need to change how it is referenced
2019-03-14 11:47:11 +00:00
Darren Mackintosh cc32284e8a
Updated reference to choices
Because I have attempted to fix the WebPack issue with choices, I need to change how it is referenced
2019-03-14 11:46:39 +00:00
Darren Mackintosh b1005061ff
Changed reference to Choices
Because I have attempted to fix the WebPack issue with choices, I need to change how it is referenced
2019-03-14 11:44:46 +00:00
Darren Mackintosh 6486bbbd6d
Updated tests to reflect changes to choices.js 2019-03-14 11:23:57 +00:00
Darren Mackintosh f9f63e7aba
Fix for the webpack issue
export choices as a class to circumvent the webpack issue
2019-03-14 11:23:12 +00:00
Hans Lemuet 5c17250e20
Allow passing an empty array to setChoices 2019-03-13 10:34:06 +01:00
Hans Lemuet fc9bca2ece
Rename _clearChoices to clearChoices 2019-03-13 10:05:38 +01:00
Darren Mackintosh 2fa92520ef
Updated Choices.js
Fixes scrollbar issue in IE11. There is an EDGE-CASE where-by if a user were to select the same option twice, the dropdown doesn't go away. This is, however a very extreme case and we are on the right track
2019-03-12 20:27:54 +00:00
Josh Johnson bbbc31594c
Update README.md 2019-03-11 12:19:52 +00:00