@targoninc/jess-components 0.0.26 → 0.0.27
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 +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -919,7 +919,10 @@ function select(config) {
|
|
|
919
919
|
}
|
|
920
920
|
value$.subscribe(setSelected);
|
|
921
921
|
setSelected(value$.value);
|
|
922
|
-
return create("div").applyGenericConfig(config).classes("jessc-select", "flex-v", "relative").children(when(config.label, create("label").classes("jess").text(config.label).build()), signalMap(options, create("select").classes("jessc-select-inner").id(selectId).onchange((e) =>
|
|
922
|
+
return create("div").applyGenericConfig(config).classes("jessc-select", "flex-v", "relative").children(when(config.label, create("label").classes("jess").text(config.label).build()), signalMap(options, create("select").classes("jessc-select-inner").id(selectId).onchange((e) => {
|
|
923
|
+
value$.value = e.target.value;
|
|
924
|
+
config.onchange && config.onchange(e.target.value);
|
|
925
|
+
}), (option) => create("option").value(option.id).text(option.name).build())).build();
|
|
923
926
|
}
|
|
924
927
|
function searchableSelect(config) {
|
|
925
928
|
const options = config.options ?? signal([]);
|