mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-15 20:25:18 +02:00
4a5019f73d
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 |
||
---|---|---|
.. | ||
images | ||
scripts | ||
styles |