Skip to content

Commit

Permalink
Rewrite changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
dvg-p4 committed Oct 9, 2024
1 parent c95a13f commit aefa93e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@
<!-- Feel free to put either your handle and/or full name, according to
your privacy needs -->

## In development
## v0.16.0 [In development]

### Breaking changes

- `clearOptions()` removes currently-selected items in addition to deselecting them by default, as
it did prior to selectize v0.12.5.

### New features

- `clearOptions()` has a new parameter `removeCurrentItems`, default `true`. If set `false`, it will
leave currently-selected items available *and selected*, as was the case from v0.12.5 to v0.13.0.
- `clearOptions()` now, by default, removes currently-selected items in addition to deselecting them,
as it did prior to selectize v0.12.5.
- This behavior is controlled by a new parameter `removeCurrentItems`, default `true`.
- If `removeCurrentItems` is set `false`, the function will instead leave currently-selected items
available *and selected*, as was the case from selectize v0.12.5, until v0.13.1 introduced
[#2146](https://github.com/selectize/selectize.js/issues/2146) (which this change fixes).
- For consistency, `silent` also has a (backwards-compatible) default value of `false` now.
- The full signature is thus `clearOptions(silent = false, removeCurrentItems = true)`
- Thus, the full signature is now `clearOptions(silent = false, removeCurrentItems = true)`

_@dvg-p4_

## v0.15.1 · 17 11 2022

Expand Down

0 comments on commit aefa93e

Please sign in to comment.