Skip to content

Conversation

@luannmoreira
Copy link
Member

Description

This PR addresses an issue with event propagation in the QuickConnectionList.vue component. Previously, when users clicked or pressed a key on the SSH ID text within the tooltip, the events would bubble up and potentially trigger unintended behavior in parent components.

To resolve this, .stop modifiers have been added to the @click and @keypress events on the span that triggers the copy action. This ensures that the event is handled locally and does not propagate beyond the intended element, improving the reliability and predictability of user interactions with the tooltip.

Why It Matters

Without stopping event propagation, UI components that rely on scoped interactions may behave unpredictably. For example, a parent component might react to the same click, causing side effects like modal closures or row selections. This change ensures a more intuitive and controlled UX when copying SSH IDs.

Stop event propagation on SSH ID copy interactions to avoid
unintended parent component behavior when clicking or pressing keys
on the tooltip text.
@luannmoreira luannmoreira self-assigned this May 30, 2025
@luannmoreira luannmoreira requested a review from a team as a code owner May 30, 2025 13:46
@luannmoreira luannmoreira added kind/bug Something isn't working area/ui javascript Pull requests that update Javascript code status/ready-for-testing status/good-to-merge labels May 30, 2025
@gustavosbarreto gustavosbarreto merged commit 3c24181 into master Jun 2, 2025
16 checks passed
@gustavosbarreto gustavosbarreto deleted the fix/tooltip-copy-event-propagation branch June 2, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ui javascript Pull requests that update Javascript code kind/bug Something isn't working status/good-to-merge status/ready-for-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants