A vanilla JS customisable select box/text input plugin ⚡️
$choices-z-index
variable @Moonlight-Angel (#1034)@Moonlight-Angel, @Sysix, @brosua, @comxd, @mtriff, @ousmorez, David DIVERRES and Josua Vogel
@brosua, @mtriff, @mysliwietzflorian and @supermueller
fuseOptions
have changed. See https://fusejs.io/api/options.html for details.innerHTML
. This had the potential to allow XSS attacks when loading items from external, untrusted sources. This behaviour has been deprecated. The new option allowHTML
has been introduced, with the current default to true
. The default will change to false
in a future release. It is recommended that you set it to false
unless you require HTML.callbackOnCreateTemplates
now receives the full configuration object, instead of just classNames
. The method signature to match previous versions is now ({ classNames }, data)
. See the documentation for the updated example.@bobmaerten, @mtriff, @rjorel, @victiondev, @isaac-mercieca, @daicambruzzi
Although this is primarily a maintenance release, there have been a couple of large refactorings done (for example, conversion of the library to TypeScript). So, just to be cautious, this is a minor version bump.
@JoshuaCrewe, @actions-user, @alexwlchan, @bzf, @dgrammatiko, @flip111, @hans2103, @jshjohnson, @mtriff, @trbroyles1 and Joshua Crewe
@agamemnus, @bronzehedwick, @dios-oleg, @jshjohnson and @tinovyatkin
This version contains multiple breaking changes:
userDefaults
static property has been removedajax
method has been removed. setChoices
can now be used to set choices dynamically - more info can be found in the README (https://github.com/jshjohnson/Choices/pull/701)addItemFilterFn
option has been renamed to addItemFilter
and now supports regex's (https://github.com/jshjohnson/Choices/pull/699)Element.prototype.closest
has been added to the required polyfill list (https://github.com/jshjohnson/Choices/pull/696).is-hidden
class has been replaced with the hidden
attribute (https://github.com/jshjohnson/Choices/pull/691/files)This version also contains numerous bug fixes, type fixes + tooling improvements 🎉
Big thanks to @tinovyatkin for his contributions to this release!
Includes the following changes:
clearChoices
is now a public method and passing an empty array to setChoices
will also clear choices