platypicker 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platypicker",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "private": false,
5
5
  "main": "dist/platypicker.min.js",
6
6
  "files": [
@@ -4,6 +4,11 @@
4
4
 
5
5
  select.platypicker {
6
6
  anchor-name: --platypicker;
7
+
8
+ &:not(:has(option:checked))::after {
9
+ content: "\00a0";
10
+ visibility: hidden;
11
+ }
7
12
 
8
13
  &:not([multiple]), &::picker(select) {
9
14
  appearance: base-select !important;
@@ -342,9 +342,6 @@ export default class Platypicker {
342
342
  for (const selectedOption of this.#select.selectedOptions) {
343
343
  selectedOption["popoverItem"].classList.add("active");
344
344
  }
345
-
346
- if (!this.#select.selectedOptions.length)
347
- this.#select.querySelector("selectedcontent").textContent = "0 selected";
348
345
  }
349
346
 
350
347
  #adjustHighlightRange(item, searchValue) {