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

[terra-tag] Combobox throws error when integrated with Fusion Combo Box #3942

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

MadanKumarGovindaswamy
Copy link
Contributor

@MadanKumarGovindaswamy MadanKumarGovindaswamy commented Oct 17, 2023

Summary

Terra Form Select Combobox component tries to access a DOM element using a hardcoded classname string in method. This component works fine when consumed normally. But in fusion, the compilation step transpiles these sass classes coming from terra into some dynamic string. So, when consuming Combox in fusion, the component is not able to find the element using the logic mentioned above.

What was changed:

Added data attribute instead of querying class Name.

Why it was changed:

When Combo box is used in Mpage Application all the class names are transpiled. And when we try to query using the class name component gets crashed.

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-9759


Thank you for contributing to Terra.
@cerner/terra

@cerner cerner deleted a comment from github-actions bot Oct 17, 2023
@github-actions github-actions bot temporarily deployed to preview-pr-3942 October 18, 2023 11:17 Destroyed
@supreethmr supreethmr merged commit 5e78324 into main Oct 19, 2023
@supreethmr supreethmr deleted the UXPLATFORM-9759-TerraFormSelectComboBoxIssue branch October 19, 2023 10:49
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