Update CHANGELOG.md

This commit is contained in:
Xon 2024-09-02 10:27:42 +08:00
commit bef1adfa91
2 changed files with 15 additions and 0 deletions

View file

@ -8,6 +8,7 @@
### Bug Fixes (from 11.0.0)
* Fix choice disable state wasn't considered when showing the "no choices to choose from" notice
* Fix regression "no choices to choose from" notice not triggering when no selectable choices exist for select-one. [#1185](https://github.com/Choices-js/Choices/issues/1185)
* Fix regression where webpack doesn't permit importing scss/css @tagliala (#1193)
### Chore
* Add e2e tests for "no choices" behavior to match v10

View file

@ -106,6 +106,20 @@ Or include Choices directly:
<script src="/public/assets/scripts/choices.min.js"></script>
```
### CSS/SCSS
The use of `import` of css/scss is supported from webpack.
In .scss:
```scss
@import "choices.js/src/styles/choices";
```
In .js/.ts:
```javascript
import "choices.js/public/assets/styles/choices.css";
```
## Setup
**Note:** If you pass a selector which targets multiple elements, the first matching element will be used. Versions prior to 8.x.x would return multiple Choices instances.