@targoninc/jess-components 0.0.19 → 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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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").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([]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@targoninc/jess-components",
3
3
  "type": "module",
4
- "version": "0.0.19",
4
+ "version": "0.0.21",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [