Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2561a25261 | |||
| 666bbf2503 |
@@ -22,8 +22,13 @@
|
||||
searchResultsManager: SearchResultsManager;
|
||||
}
|
||||
|
||||
let { searchResultsManager, assetInteraction, children, stylePaddingHorizontalPx, styleMarginTopPx }: Props =
|
||||
$props();
|
||||
let {
|
||||
searchResultsManager,
|
||||
assetInteraction,
|
||||
children,
|
||||
stylePaddingHorizontalPx = 0,
|
||||
styleMarginTopPx,
|
||||
}: Props = $props();
|
||||
let viewer: Photostream | undefined = $state(undefined);
|
||||
|
||||
const onAfterNavigateComplete = ({ scrollToAssetQueryParam }: { scrollToAssetQueryParam: boolean }) =>
|
||||
@@ -50,7 +55,7 @@
|
||||
{@render children?.()}
|
||||
|
||||
{#snippet skeleton({ segment })}
|
||||
<Skeleton height={segment.height - segment.timelineManager.headerHeight} />
|
||||
<Skeleton height={segment.height - segment.timelineManager.headerHeight} {stylePaddingHorizontalPx} />
|
||||
{/snippet}
|
||||
|
||||
{#snippet segment({ segment, onScrollCompensationMonthInDOM })}
|
||||
|
||||
@@ -33,9 +33,13 @@
|
||||
let isFocus = $state(false);
|
||||
let close: (() => Promise<void>) | undefined;
|
||||
|
||||
let navigating = false;
|
||||
const listboxId = generateId();
|
||||
|
||||
onDestroy(() => {
|
||||
if (navigating) {
|
||||
return;
|
||||
}
|
||||
searchStore.isSearchEnabled = false;
|
||||
});
|
||||
|
||||
@@ -44,6 +48,7 @@
|
||||
|
||||
closeDropdown();
|
||||
searchStore.isSearchEnabled = false;
|
||||
navigating = true;
|
||||
await goto(`${AppRoute.SEARCH}?${params}`);
|
||||
};
|
||||
|
||||
@@ -73,6 +78,9 @@
|
||||
};
|
||||
|
||||
const onFocusOut = () => {
|
||||
if (navigating) {
|
||||
return;
|
||||
}
|
||||
searchStore.isSearchEnabled = false;
|
||||
};
|
||||
|
||||
@@ -161,6 +169,9 @@
|
||||
};
|
||||
|
||||
const closeDropdown = () => {
|
||||
if (navigating) {
|
||||
return;
|
||||
}
|
||||
showSuggestions = false;
|
||||
isFocus = false;
|
||||
searchHistoryBox?.clearSelection();
|
||||
|
||||
Reference in New Issue
Block a user