@targoninc/jess-components 0.0.20 → 0.0.21
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
|
@@ -862,7 +862,7 @@ function icon(config) {
|
|
|
862
862
|
function select(config) {
|
|
863
863
|
const options = config.options ?? signal([]);
|
|
864
864
|
const value = config.value ?? signal(null);
|
|
865
|
-
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").onchange(config.onchange).value(value), (option) => create("option").value(option.id).text(option.name).build())).build();
|
|
865
|
+
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").onchange((e) => config.onchange ? config.onchange(e.target.value) : undefined).value(value), (option) => create("option").value(option.id).text(option.name).build())).build();
|
|
866
866
|
}
|
|
867
867
|
function searchableSelect(config) {
|
|
868
868
|
const options = config.options ?? signal([]);
|