react-better-html 1.1.259 → 1.1.261

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.mjs CHANGED
@@ -5940,6 +5940,7 @@ var FormComponent = forwardRef13(function Form({
5940
5940
  renderActionButtons,
5941
5941
  onClickCancel,
5942
5942
  onSubmit,
5943
+ id,
5943
5944
  children,
5944
5945
  ...props
5945
5946
  }, ref) {
@@ -5952,7 +5953,7 @@ var FormComponent = forwardRef13(function Form({
5952
5953
  }, [form]);
5953
5954
  const SubmitButtonTag = isDestructive ? Button_default.destructive : Button_default;
5954
5955
  const submitButtonIsDisabledFinal = submitButtonIsDisabled || submitButtonIsDisabledInternal;
5955
- return /* @__PURE__ */ jsx19(Div_default, { width: "100%", ...props, children: /* @__PURE__ */ jsxs16("form", { name, onSubmit: onSubmit ?? form?.onSubmit, ref, children: [
5956
+ return /* @__PURE__ */ jsx19(Div_default, { width: "100%", ...props, children: /* @__PURE__ */ jsxs16("form", { name, onSubmit: onSubmit ?? form?.onSubmit, id, ref, children: [
5956
5957
  gap !== void 0 || withDividers ? /* @__PURE__ */ jsx19(Div_default.column, { gap: gap ?? (withDividers ? theme2.styles.space : theme2.styles.gap), children: withDividers ? Children.toArray(children).map((child, index) => /* @__PURE__ */ jsxs16(Fragment5, { children: [
5957
5958
  child,
5958
5959
  index < Children.toArray(children).length - 1 && /* @__PURE__ */ jsx19(
@@ -7940,10 +7941,10 @@ var MenuItemComponent = memo27(function MenuItemComponent2({
7940
7941
  const isActive2 = location.pathname === "/" ? location.pathname === item.href : location.pathname.startsWith(item.href) && item.href !== "/";
7941
7942
  if (!isActive2) return;
7942
7943
  setActiveItem(
7943
- (oldValue) => item.href ? oldValue && oldValue.length > item.href.length ? oldValue : {
7944
+ (oldValue) => item.href && item.href !== oldValue?.href ? {
7944
7945
  href: item.href,
7945
7946
  length: item.href.length
7946
- } : void 0
7947
+ } : oldValue
7947
7948
  );
7948
7949
  }, [location.pathname]);
7949
7950
  useEffect16(() => {