From d37f3e9218ce2b291e0024dcec89f1758b54aa0f Mon Sep 17 00:00:00 2001 From: Khai Truong Date: Sun, 25 Aug 2024 16:35:58 +0700 Subject: [PATCH] update search height when paste and not search if same input --- ext/js/display/search-display-controller.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js index cdf16c0f12..c664fc849b 100644 --- a/ext/js/display/search-display-controller.js +++ b/ext/js/display/search-display-controller.js @@ -292,8 +292,11 @@ export class SearchDisplayController { if (!text) { return; } - this._queryInput.value = text; - this._searchButton.click(); + if (this._queryInput.value !== text) { + this._queryInput.value = text; + this._updateSearchHeight(true); + this._searchButton.click(); + } } /** @type {import('application').ApiHandler<'searchDisplayControllerUpdateSearchQuery'>} */