Releases: mustardBees/cmb-field-select2
v3.0.3
v3.0.2
Prevent array to string conversion PHP notice. Props @natashaallsopp
v3.0.1
Bugfix release. Compatibility with CMB2 2.2.2+. Props @jtsternberg
v3.0.0
- Support for repeatable fields and repeatable group fields! Props @AlchemyUnited & @erangalp
- Update Select2 to from 3.5.1 to 4.0.2
- The asset path is now filterable. If you choose to include this field type within a theme/plugin, you can now override the location of front end scripts/styles
- Placeholder text can now be defined separately from the field description
- Documentation update, including updated examples
- The major version bump is due to a slight change in behaviour. Previously when using a multi-value select field, any saved values which no longer exist in the options array, even though they're not visible, the values would have remained when saved. Now, upon saving, these orphaned values are discarded. Props @gyrus
v2.0.4
Refactor to use CMB2 APIs. No longer need sanitization_cb, and should setup structure for repeatable properly. Props @jtsternberg
v2.0.3
Store description into a variable to avoid "Can't use function return value in write context in..." errors. Props to @pasqualevitiello
v2.0.2
Update class name following change in CMB2.
v2.0.1
Selector compatibility with a change made in CMB2. Props @pasqualevitiello
v2.0.0
CMB2 compatibility. Props to @pasqualevitiello for getting this working. As this is a breaking change, I've bumped the version to 2.0.0.
For use with other versions of CMB, check the previous releases.
v1.0.1
Resolve issue where only IDs are valid values