diff --git a/pgml-dashboard/src/components/inputs/text/search/search/mod.rs b/pgml-dashboard/src/components/inputs/text/search/search/mod.rs index a8740c600..c507f24b1 100644 --- a/pgml-dashboard/src/components/inputs/text/search/search/mod.rs +++ b/pgml-dashboard/src/components/inputs/text/search/search/mod.rs @@ -33,12 +33,6 @@ impl Search { .method("startSearch") .action(StimulusEvents::FocusIn), ) - .input_action( - StimulusAction::new() - .controller("inputs-text-search-search") - .method("endSearch") - .action(StimulusEvents::FocusOut), - ) .input_action( StimulusAction::new() .controller("inputs-text-search-search") @@ -58,6 +52,14 @@ impl Search { self.input = input; self } + + /// Close the dropdown whenever you want. + /// Modify the action to change the event from the default onClick. + pub fn end_search_action() -> StimulusAction { + StimulusAction::new_click() + .controller("inputs-text-search-search") + .method("endSearch") + } } component!(Search); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy