Add below-search slot and fix missing top slot

This commit is contained in:
Talia 2025-01-15 16:34:38 +01:00
parent 715d57d56a
commit c2384c540f
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,6 @@
"browser": "src/BetterSelect.js",
"type": "module",
"license": "MIT",
"version": "1.1.0",
"version": "1.2.0",
"url": "https://darkwiiplayer.github.io/BetterSelect/"
}

View file

@ -157,7 +157,9 @@ export class BetterSelect extends HTMLElement {
</slot>
</div>
<dialog id="dialog" part="drop-down">
<slot name="top"></slot>
<input type="search" id="input" part="search" type="search"></input>
<slot name="below-search"></slot>
<ul id="list" part="list"></ul>
<slot name="bottom"></slot>
<slot id="loading" name="loading"></slot>