Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Oct 20, 2025

Note

Forward qa to the ComboBox input, set a default qa on the wrapper, and remove unused props from ComboBoxInput.

  • ComboBox (src/components/fields/ComboBox/ComboBox.tsx):
    • Forward qa to the input element (replaces hardcoded "Input").
    • Define default qa on ComboBoxWrapperElement and stop passing qa at usage.
    • Remove unused isLoading and allowsCustomValue from ComboBoxInput props.
  • Changeset: Patch bump with note "Fix qa prop binding in ComboBox."

Written by Cursor Bugbot for commit 6960a12. This will update automatically on new commits. Configure here.

@tenphi tenphi requested a review from solarrust October 20, 2025 11:07
@changeset-bot
Copy link

changeset-bot bot commented Oct 20, 2025

🦋 Changeset detected

Latest commit: 9d9ec23

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
cube-ui-kit Ready Ready Preview Comment Oct 20, 2025 11:20am
cube-ui-kit-cursor Ready Ready Preview Comment Oct 20, 2025 11:20am

💡 Enable Vercel Agent with $100 free credit for automated AI reviews

@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-9533b02.

<InputElement
ref={combinedRef}
qa="Input"
qa={qa}
Copy link

Choose a reason for hiding this comment

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

Bug: ComboBox Input QA Prop Inheritance Issue

The InputElement within ComboBox no longer defaults to qa="Input". Instead, its qa prop is directly set from the ComboBox's qa prop, which can be undefined. This removes a consistent identifier for the input field, breaking existing QA selectors and making it harder to target the input for testing.

Fix in Cursor Fix in Web

>
{prefix ? <div data-element="Prefix">{prefix}</div> : null}
<ComboBoxInput
qa={qa}
Copy link

Choose a reason for hiding this comment

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

Bug: ComboBox QA Prop Misrouting

The qa prop on ComboBox no longer customizes the ComboBoxWrapperElement, which now uses a hardcoded qa='ComboBoxWrapper'. The component's qa prop is instead passed to the InputElement, potentially leaving its qa attribute undefined. This breaks QA selector customization for both the wrapper and the input.

Fix in Cursor Fix in Web

data-size={size}
{...compositeFocusProps}
>
{prefix ? <div data-element="Prefix">{prefix}</div> : null}
Copy link

Choose a reason for hiding this comment

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

Bug: ComboBox Wrapper QA Attribute Overwritten

The ComboBoxWrapperElement now has a hardcoded qa attribute, preventing the qa prop from the ComboBox component from customizing the root wrapper's QA identifier. It always defaults to 'ComboBoxWrapper'.

Additional Locations (1)

Fix in Cursor Fix in Web

@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2025

🧪 Storybook is successfully deployed!

@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2025

🏋️ Size limit report

Name Size Passed?
All 304.45 KB (-0.01% 🔽👏) Yes 🎉
Tree shaking (just a Button) 32.06 KB (0% 🟰) Yes 🎉
Tree shaking (just an Icon) 19.38 KB (0% 🟰) Yes 🎉

Click here if you want to find out what is changed in this build

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