Andreas Fernandez
4a5019f73d
[BUGFIX] Check for constructor name of element on bootstrap
...
The previous check using `instanceof` fails in case the Choices.js
component is rendered in the `top` frame while the JavaScript actually
using Choices.js is in an iframe.
The conditions are changed to check for `constructor.name` now, solving
the issue.
Due to the rather messy constructor, some quirks like operational
chaining and explicit type casts need to be used to make the TypeScript
compiling process happy.
Fixes : #1057
2022-09-20 16:45:09 +02:00
Matt Triff
f63201d929
Fix type for parameter on setChoiceByValue
2022-03-13 17:22:37 -04:00
Josua Vogel
eb22895f00
Add option labelId to improve a11y ( #971 )
...
* Add option labelId to improve a11y
* Console.log entfernt
* Add test case for aria-labeledby
Co-authored-by: Josua Vogel <josua.vogel@t-systems.com>
2022-01-18 17:07:07 -05:00
Matt Triff
ce3d1111d8
Merge pull request #991 from Choices-js/fuse6
...
Upgrade to Fuse v6
2022-01-02 13:27:09 -05:00
Daiana Cambruzzi Ávila
23f0b7cb9d
Fix Issue 630: allow triggering of 'search' event when clearing the input field
2021-12-31 18:23:13 -05:00
Matt Triff
303d12504c
Upgrade to Fuse v6
2021-12-31 18:11:45 -05:00
Matt Triff
9605f367f9
Search using non-sanitised input value
2021-12-30 22:05:03 -05:00
Matt Triff
66c6864267
Update allowHTML wording, set remote examples to allowHTML false
2021-12-26 09:36:12 -05:00
viction
6b16e93977
fix: template testing & type errors
2021-12-24 17:32:50 +00:00
viction
7f727480e8
feat: allowHTML
2021-12-23 16:59:48 +00:00
Matt Triff
3d921621b7
Update dependencies, fix linting issues, split interfaces and default objects to resolve dependency cycles
2021-12-17 16:26:52 -05:00
Josh Johnson
68313da412
Convert to typescript ( #795 )
...
* Typescript config setup
* Add type annotations to components
* Further type additions
* And more...
* Add types to actions
* Add types to templates
* Further type checks
* Further type additons
* Install fuse latest
* Housekeeping
* Remove old type definitions
* Fix remaning type issues
* Fix some failing tests
* Remove types workflow
* Fix failing unit tests
* Resolve back space event regression
* Convert cypress files to .ts
* Fix eslint issues
* Remove cachebusting urls
* Resolve delete button bug
* Resolve regression bugs
* Fix lint script
* Fix lint workflow
* Pass args instead of object to keyboard handlers
* Flatten misc reducer
* Resolve keyboad action test failures
* Use Pick instead of Partial
* Use interfaces in action tests
* Update firefox image
* Incorporate #791
* Incorporate #788
2019-12-23 18:22:54 +00:00