@targoninc/jess-components 0.0.23 → 0.0.25
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/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -914,7 +914,7 @@ function select(config) {
|
|
|
914
914
|
const value$ = config.value ?? signal(null);
|
|
915
915
|
const selectId = v4_default();
|
|
916
916
|
function setSelected(value) {
|
|
917
|
-
const opts = document.querySelectorAll(`select
|
|
917
|
+
const opts = document.querySelectorAll(`select[id="${selectId}"] option`);
|
|
918
918
|
opts.forEach((opt) => opt.selected = opt.value === value);
|
|
919
919
|
}
|
|
920
920
|
value$.subscribe(setSelected);
|