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
  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

* applied: [PATCH datacenter-manager] ui: search widget: use 'pointer' cursor for clear trigger
  2026-04-15 14:31 [PATCH datacenter-manager] ui: search widget: use 'pointer' cursor for clear trigger Dominik Csapak
@ 2026-04-16 13:05 ` Lukas Wagner
  0 siblings, 0 replies; 2+ messages in thread
From: Lukas Wagner @ 2026-04-16 13:05 UTC (permalink / raw)
  To: pdm-devel, Dominik Csapak


On Wed, 15 Apr 2026 16:31:21 +0200, Dominik Csapak wrote:
> by using the proper 'on_activate' handler instead of onclick.
> This handles mouse + keyboard input and adds the correct class for the
> pointer automatically.
> 
> 

Applied, thanks!

[1/1] ui: search widget: use 'pointer' cursor for clear trigger
      commit: 1448dcfd17b3f87a8597f2948359f76de4b75ef8

Best regards,
-- 
Lukas Wagner <l.wagner@proxmox.com>




^ 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 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