@nebularstreams/libmui 2.5.111 → 2.5.113

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nebularstreams/libmui",
3
3
  "description": "Micro UI based on Mithril",
4
- "version": "2.5.111",
4
+ "version": "2.5.113",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -435,7 +435,11 @@ const
435
435
  m(ButtonNew, {
436
436
  ...metaDef.addAction,
437
437
  onClick: (e) => {
438
- metaDef.addAction.onClick(e, parameters, auxParameters);
438
+ if (metaDef.addAction.onClick) {
439
+ metaDef.addAction.onClick(e, parameters, auxParameters);
440
+ } else if (metaDef.addAction.template) {
441
+ rawValue.push(cloneObject(metaDef.addAction.template));
442
+ }
439
443
  m.redraw();
440
444
  }
441
445
  })