Choices/src/scripts
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
..
actions Update dependencies, fix linting issues, split interfaces and default objects to resolve dependency cycles 2021-12-17 16:26:52 -05:00
components [BUGFIX] Check for constructor name of element on bootstrap 2022-09-20 16:45:09 +02:00
interfaces Fix typo on aria-labelledby attribute 2022-04-01 14:13:08 +02:00
lib Update tests for > 2021-12-21 18:07:31 -05:00
reducers Update dependencies, fix linting issues, split interfaces and default objects to resolve dependency cycles 2021-12-17 16:26:52 -05:00
store Update dependencies, fix linting issues, split interfaces and default objects to resolve dependency cycles 2021-12-17 16:26:52 -05:00
choices.test.ts Merge pull request #991 from Choices-js/fuse6 2022-01-02 13:27:09 -05:00
choices.ts [BUGFIX] Check for constructor name of element on bootstrap 2022-09-20 16:45:09 +02:00
constants.test.ts feat: allowHTML 2021-12-23 16:59:48 +00:00
constants.ts Update dependencies, fix linting issues, split interfaces and default objects to resolve dependency cycles 2021-12-17 16:26:52 -05:00
defaults.ts Add option labelId to improve a11y (#971) 2022-01-18 17:07:07 -05:00
templates.test.ts Fix typo on aria-labelledby attribute 2022-04-01 14:13:08 +02:00
templates.ts Fix typo on aria-labelledby attribute 2022-04-01 14:13:08 +02:00