public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH datacenter-manager] ui: search widget: use 'pointer' cursor for clear trigger
@ 2026-04-15 14:31 Dominik Csapak
  0 siblings, 0 replies; only message in thread
From: Dominik Csapak @ 2026-04-15 14:31 UTC (permalink / raw)
  To: pdm-devel

by using the proper 'on_activate' handler instead of onclick.
This handles mouse + keyboard input and adds the correct class for the
pointer automatically.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 ui/src/widget/search_box.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/widget/search_box.rs b/ui/src/widget/search_box.rs
index 15100a63..ba76858b 100644
--- a/ui/src/widget/search_box.rs
+++ b/ui/src/widget/search_box.rs
@@ -151,7 +151,7 @@ impl Component for PdmSearchBox {
                             .placeholder(tr!("Search (Ctrl+Space / Ctrl+Shift+F)"))
                             .value(self.force_value.then_some(self.search_term.clone()))
                             .with_trigger(
-                                Trigger::new(clear_trigger_icon).onclick(
+                                Trigger::new(clear_trigger_icon).on_activate(
                                     ctx.link().callback(|_| Msg::ChangeTerm("".into(), true)),
                                 ),
                                 true,
-- 
2.47.3





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-15 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-15 14:31 [PATCH datacenter-manager] ui: search widget: use 'pointer' cursor for clear trigger Dominik Csapak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal