react-better-html 1.1.259 → 1.1.260

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 CHANGED
@@ -7973,10 +7973,10 @@ var MenuItemComponent = (0, import_react31.memo)(function MenuItemComponent2({
7973
7973
  const isActive2 = location.pathname === "/" ? location.pathname === item.href : location.pathname.startsWith(item.href) && item.href !== "/";
7974
7974
  if (!isActive2) return;
7975
7975
  setActiveItem(
7976
- (oldValue) => item.href ? oldValue && oldValue.length > item.href.length ? oldValue : {
7976
+ (oldValue) => item.href && item.href !== oldValue?.href ? {
7977
7977
  href: item.href,
7978
7978
  length: item.href.length
7979
- } : void 0
7979
+ } : oldValue
7980
7980
  );
7981
7981
  }, [location.pathname]);
7982
7982
  (0, import_react31.useEffect)(() => {