-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle close GlobalSearchModal gracefully #41792
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. Didn't test
/backport to stable28 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that using the .sync
modifier can help in such cases: https://v2.vuejs.org/v2/guide/components-custom-events.html#sync-Modifier
But code looks good like that
6f3bf8d
to
02525ed
Compare
02525ed
to
56c5e75
Compare
/compile amend / |
56c5e75
to
fa27fd3
Compare
The current close infrastructure modifies a prop which has no real effect aside bugs. In addition, calling the `NcModal.close()` as the primary way to close the search modal instead of using the states defined in `GlobalSearch` view causing re-open bugs (Modal cannot open, needs to click twice, and other weird stuff). Signed-off-by: fenn-cs <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
fa27fd3
to
0d938cc
Compare
/compile / |
Signed-off-by: nextcloud-command <[email protected]>
drone error unrelated |
Handle close GlobalSearchModal gracefully
/backport to stable28 |
[stable28] Handle close GlobalSearchModal gracefully #41792
Sorts out re-opening errors, such as needing two clicks after clicking outside, or modal flashes.
The current close infrastructure modifies a prop which has no real effect aside bugs.
In addition, calling the
NcModal.close()
as the primary way to close the search modal instead of using the states defined inGlobalSearch
view causing re-open bugs (Modal cannot open, needs to click twice, and other weird stuff).Contributes to #41381