Skip to content

STCOM-1469 <PaneCloseLink> - add a new closeButtonRef prop to provide a ref for the pane close icon button. - #2515

Open
BogdanDenis wants to merge 2 commits into
mainfrom
STCOM-1461
Open

STCOM-1469 <PaneCloseLink> - add a new closeButtonRef prop to provide a ref for the pane close icon button.#2515
BogdanDenis wants to merge 2 commits into
mainfrom
STCOM-1461

Conversation

@BogdanDenis

Copy link
Copy Markdown
Contributor

Description

autoFocus attribute works consistently on page load, but when a component is mounted when data is loaded - it can sometimes not work. A more consistent way to focus an element is by calling a focus function on the element directly.
For this, <PaneCloseLink> should accept a ref prop to provide access to the button element.

Issues

STCOM-1461

…vide a ref for the pane close icon button.
@BogdanDenis
BogdanDenis requested a review from a team as a code owner December 9, 2025 14:30
@github-actions

github-actions Bot commented Dec 9, 2025

Copy link
Copy Markdown

Bigtest Unit Test Results

    1 files  ±0      1 suites  ±0   22s ⏱️ -2s
1 617 tests ±0  1 609 ✅ +1  8 💤 ±0  0 ❌  - 1 
1 618 runs  ±0  1 610 ✅ +1  8 💤 ±0  0 ❌  - 1 

Results for commit aa32eb9. ± Comparison against base commit 6069e1d.

♻️ This comment has been updated with latest results.

@sonarqubecloud

sonarqubecloud Bot commented Dec 9, 2025

Copy link
Copy Markdown

@zburke zburke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BogdanDenis, LGTM, but I also don't understand where the expectations about focus expressed in the ticket come from. I'm not against merging this since it allows things to be changed but doesn't actually change them, but we may want to wait until the comments on this story are fully-resolved. Your call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants