From de09b57cb64fc377a4a7bf1b6f07dc78cdb1de94 Mon Sep 17 00:00:00 2001 From: Felix <krumm-felix@adornis.de> Date: Thu, 17 Apr 2025 15:04:50 +0000 Subject: [PATCH] fix: stop double routing on href --- modules/data-view/client/x-data-view-table.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/data-view/client/x-data-view-table.ts b/modules/data-view/client/x-data-view-table.ts index d382b5fcc3..693c6656c1 100644 --- a/modules/data-view/client/x-data-view-table.ts +++ b/modules/data-view/client/x-data-view-table.ts @@ -15,7 +15,6 @@ import { translateFieldName } from '@adornis/field-management/translate-field.js import { changeStream } from '@adornis/filter/change-stream.js'; import type { filterTranslations } from '@adornis/filter/default-translations.js'; import { XDropdown } from '@adornis/popover/x-dropdown.js'; -import { goTo } from '@adornis/router/client/open-href.js'; import { getScrollParent } from '@adornis/shadowroot-helpers/get-scroll-parent.js'; import { TranslationController } from '@adornis/translation-core/client/translation-controller.js'; import { html, nothing, type PropertyValueMap } from 'lit'; @@ -614,10 +613,6 @@ export class XTableView<T extends typeof AdornisEntity> extends XDataViewAbstrac color: 'inherit', cursor: 'pointer', })} - @click=${(e: Event) => { - e.preventDefault(); - goTo(href); - }} > ${content} </a>` -- GitLab