breadcrumbs: cerrar modal cuando se clickea en link

This commit is contained in:
Cat /dev/Nulo 2023-09-07 12:23:55 -03:00
parent dc773b14ff
commit e2fbfa3a8e

View file

@ -72,6 +72,7 @@
<li> <li>
<a <a
href={inject(routes.Page, { worldId, pageId: crumb })} href={inject(routes.Page, { worldId, pageId: crumb })}
on:click={() => ((breadcrumbsModalOpen = false), true)}
class="flex items-center text-ellipsis whitespace-nowrap p-4" class="flex items-center text-ellipsis whitespace-nowrap p-4"
class:active-breadcrumb={crumb === pageId} class:active-breadcrumb={crumb === pageId}
>{$crumbsTitles[index] || crumb}</a >{$crumbsTitles[index] || crumb}</a