diff --git a/src/components/cards/CardDetailModal.svelte b/src/components/cards/CardDetailModal.svelte index 1be0eb64..0b400254 100644 --- a/src/components/cards/CardDetailModal.svelte +++ b/src/components/cards/CardDetailModal.svelte @@ -13,9 +13,16 @@ export let original_data = {}; const getRunnerLabel = (option) => option.firstname + " " + (option.middlename || "") + " " + option.lastname; - const filterRunners = (label, filterText, option) => - label.toLowerCase().includes(filterText.toLowerCase()) || - option.value.toString().startsWith(filterText.toLowerCase()); + const filterRunners = (label, filterText, option) => { + if (filterText.startsWith("#")) { + return option.value.id == parseInt(filterText.replace("#","")) + } + return ( + label.toLowerCase().includes(filterText.toLowerCase()) || + option.value.toString().startsWith(filterText.toLowerCase()) + ); + }; + function focus(el) { el.focus(); }