Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[terra-compact-interactive list] Fix to put focus on first item only on initial render #2125

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

saket2403
Copy link
Contributor

@saket2403 saket2403 commented Apr 5, 2024

Summary

What was changed:
Fix to put focus on first item only on initial render by adding empty dependency array in useEffect.

Why it was changed:
MPages custom lifecycle method is triggering the react lifecycle method unexpectedly hence a workaround is added.

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-10272


Thank you for contributing to Terra.
@cerner/terra

@saket2403 saket2403 self-assigned this Apr 5, 2024
@github-actions github-actions bot temporarily deployed to preview-pr-2125 April 5, 2024 06:54 Destroyed
@saket2403 saket2403 requested a review from adoroshk April 5, 2024 06:54
@saket2403 saket2403 marked this pull request as ready for review April 8, 2024 04:34
@saket2403 saket2403 requested a review from allanxavierm April 8, 2024 09:32
@github-actions github-actions bot temporarily deployed to preview-pr-2125 April 8, 2024 15:51 Destroyed
@saket2403 saket2403 merged commit 2e80134 into main Apr 8, 2024
22 checks passed
@saket2403 saket2403 deleted the cil-lifecycle branch April 8, 2024 16:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants