all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager] ui: search widget: use 'pointer' cursor for clear trigger
Date: Wed, 15 Apr 2026 16:31:21 +0200	[thread overview]
Message-ID: <20260415143126.3497686-1-d.csapak@proxmox.com> (raw)

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





                 reply	other threads:[~2026-04-15 14:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260415143126.3497686-1-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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