all lists on 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
  2026-04-16 13:05 ` applied: " Lukas Wagner
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

end of thread, other threads:[~2026-04-16 13:06 UTC | newest]

Thread overview: 2+ messages (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
2026-04-16 13:05 ` applied: " Lukas Wagner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal