nextcloud-server/core/src
Daniel Calviño Sánchez cf337a75a2 fix: Fix clearing unified search when modal is closed
The unified search modal was intended to be cleared when closed.
However, "UnifiedSearchModal" did not emit "update:query" when its
internal query value ("searchQuery") changed, so "UnifiedSearch.query"
was kept as an empty string. When the modal was closed "update:query"
was emitted with an empty string, which should have cleared
"UnifiedSearch.query" and that, in turn, should have cleared the modal.
However as "UnifiedSearch.query" was already an empty string the watcher
that updates "UnifiedSearchModal.searchQuery" from "UnifiedSearch.query"
was not triggered and the modal was not cleared.

As "UnifiedSearch.query" is now updated with the value of
"UnifiedSearchModal.searchQuery" the latter can not be trimmed when
updated from the former, as that would in turn also trim
"UnifiedSearchModal.searchQuery" and prevent to search for anything with
spaces at the beginning or end (even if those trailing spaces are just
temporary while writing something like "searched value").

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-07-16 13:05:53 +07:00
..
OC fix(core): getRequestToken import typo 2025-06-17 11:14:46 +07:00
OCA chore: Add SPDX header 2024-05-13 17:41:36 +07:00
OCP fix(code-style): Adjust JS code to our code style 2024-10-16 22:11:59 +07:00
Util chore: Enable ESLint for apps and fix all errors 2024-07-09 17:13:30 +07:00
components fix: Fix clearing unified search when modal is closed 2025-07-16 13:05:53 +07:00
files fix(files_sharing): adjust IAttributes API and files_versions 2024-07-12 20:14:30 +07:00
jquery fix(OC): validate request token and move logic to one place 2025-06-16 15:55:11 +07:00
mixins chore: Add SPDX header 2024-05-13 17:41:36 +07:00
services chore: migrate types to `@simplewebauthn/browser` (changes package layout) 2025-04-18 23:56:06 +07:00
store fix: Use `searchFrom` property for client side plugins 2025-01-30 17:35:00 +07:00
systemtags fix(code-style): Adjust JS code to our code style 2024-10-16 22:11:59 +07:00
tests fix: the core config is not loaded on error pages 2025-06-16 15:56:22 +07:00
types chore: Make active apps initial state consistent with OCS API 2024-07-10 01:35:24 +07:00
utils feat(core): add setup cypress tests 2025-03-13 20:51:00 +07:00
views fix: reload login page after password reset 2025-06-19 13:27:27 +07:00
ajax-cron.ts refactor(core): Make AJAX cron script work without jQuery 2024-06-28 17:28:10 +07:00
eventbus.d.ts feat: Add in-app search 2024-06-27 12:13:14 +07:00
globals.js fix(OC): validate request token and move logic to one place 2025-06-16 15:55:11 +07:00
icons.js chore: Add text file icon class 2024-10-09 14:34:53 +07:00
init.js refactor(OC): migrate session heart beat to Typescript 2025-06-16 15:55:11 +07:00
install.ts feat(core): add setup cypress tests 2025-03-13 20:51:00 +07:00
legacy-unified-search.js chore(deps): Update `@nextcloud/auth` to v2.4.0 and use `getCSPNonce` where possible 2024-08-13 17:54:47 +07:00
logger.js feat: Add in-app search 2024-06-27 12:13:14 +07:00
login.js chore: Add SPDX header 2024-05-13 17:41:36 +07:00
main.js chore(deps): Update `@nextcloud/auth` to v2.4.0 and use `getCSPNonce` where possible 2024-08-13 17:54:47 +07:00
maintenance.js chore: Add SPDX header 2024-05-13 17:41:36 +07:00
public-page-menu.ts feat: Implement Vue UI for public page menu 2024-09-03 16:07:49 +07:00
public-page-user-menu.ts feat(files_sharing): show Account menu on public pages 2025-06-11 16:43:53 +07:00
public.ts fix: Fix inaccessible content on public pages due to overlapping footer 2024-09-05 16:19:22 +07:00
recommendedapps.js chore(deps): Update `@nextcloud/auth` to v2.4.0 and use `getCSPNonce` where possible 2024-08-13 17:54:47 +07:00
session-heartbeat.ts chore(core): fix typo in session heartbeat service 2025-06-16 20:43:50 +07:00
twofactor-request-token.ts fix: update request token on two-factor pages 2025-06-23 11:20:09 +07:00
unified-search.ts fix: Use `searchFrom` property for client side plugins 2025-01-30 17:35:00 +07:00
unsupported-browser-redirect.js chore(deps): Update `@nextcloud/auth` to v2.4.0 and use `getCSPNonce` where possible 2024-08-13 17:54:47 +07:00
unsupported-browser.js chore: Add SPDX header 2024-05-13 17:41:36 +07:00