@stenajs-webui/elements 20.6.1 → 20.6.3

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.es.js CHANGED
@@ -3758,7 +3758,11 @@ const K1 = ({
3758
3758
  {
3759
3759
  ref: I1,
3760
3760
  onClick: (Y) => {
3761
- Y.stopPropagation(), Y.preventDefault(), !(N || t || a) && (g == null || g(Y));
3761
+ if (g) {
3762
+ if (Y.stopPropagation(), Y.preventDefault(), N || t || a)
3763
+ return;
3764
+ g(Y);
3765
+ }
3762
3766
  },
3763
3767
  className: l(
3764
3768
  A.button,
@@ -3878,6 +3882,7 @@ const K1 = ({
3878
3882
  {
3879
3883
  ...t,
3880
3884
  ref: s,
3885
+ type: "button",
3881
3886
  className: l(
3882
3887
  A.button,
3883
3888
  C1.textInputButton,