diff --git a/web/src/components/Add/AddDialog.jsx b/web/src/components/Add/AddDialog.jsx index ea516bb..fa6a2f0 100644 --- a/web/src/components/Add/AddDialog.jsx +++ b/web/src/components/Add/AddDialog.jsx @@ -157,10 +157,11 @@ export default function AddDialog({ posterSearch(title || parsedTitle, posterSearchLanguage) setSkipDebounce(false) } else if (!title) { + delayedPosterSearch.cancel() + if (parsedTitle) { posterSearch(parsedTitle, posterSearchLanguage) } else { - delayedPosterSearch.cancel() !isUserInteractedWithPoster && removePoster() } } else { diff --git a/web/src/components/Add/style.js b/web/src/components/Add/style.js index ac7eb26..c81803a 100644 --- a/web/src/components/Add/style.js +++ b/web/src/components/Add/style.js @@ -200,6 +200,7 @@ export const PosterWrapper = styled.div` 'suggestions'; } ` + export const PosterSuggestions = styled.div` display: grid; grid-area: suggestions; @@ -216,6 +217,7 @@ export const PosterSuggestions = styled.div` grid-template-columns: repeat(4, max-content); } ` + export const PosterSuggestionsItem = styled.div` cursor: pointer; width: 71px;