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

[terra-section-header] Prevent duplicate onClick callbacks for spacebar #3992

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

cm9361
Copy link
Contributor

@cm9361 cm9361 commented Dec 7, 2023

Summary

What was changed:
Fixed issue where onClick callback was called twice when using spacebar key.

Why it was changed:
The dual execution would prevent consumers from properly handling the event.

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

N/A

This PR resolves:

UXPLATFORM-10051


Thank you for contributing to Terra.
@cerner/terra

@cm9361 cm9361 requested a review from a team as a code owner December 7, 2023 15:12
@github-actions github-actions bot temporarily deployed to preview-pr-3992 December 7, 2023 15:12 Destroyed
@chrismichalewicz
Copy link

@cm9361 This is functionally reviewed, was able to navigate to the section header and expand/collapse with selecting Space without issues.

@cm9361 cm9361 merged commit 617f4c7 into main Dec 7, 2023
21 checks passed
@cm9361 cm9361 deleted the UXPLATFORM-10051 branch December 7, 2023 20:02
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.

6 participants