mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-08 00:42:15 +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 |
||
---|---|---|
.. | ||
assets | ||
test | ||
types | ||
index.html | ||
robots.txt |