-
Notifications
You must be signed in to change notification settings - Fork 361
fix(Dropdown): keep selected value inside input for searchable single select #3405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 29 commits
c3a4c33
6edf9ba
3417b82
11b7f86
127c22d
d0ea70b
8b0f582
ec82022
2e64c64
4fcb1dc
1769c1d
82168c5
2620010
f279286
18df1ce
30a6147
dbe9c5e
b586b6a
f8eda67
26bd70c
3624cf6
f211010
33aa013
3f226c9
1543770
2a405f8
25d217d
a47d3e0
8b7517d
ae04db8
fab50a2
b78733a
c1ce229
c7b27a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,6 +63,10 @@ export interface FlexProps extends VibeComponentProps { | |
| * ID of the element describing the flex container. | ||
| */ | ||
| "aria-labelledby"?: string; | ||
| /** | ||
| * The ARIA role of the flex container. | ||
| */ | ||
| role?: React.AriaRole; | ||
|
Comment on lines
+66
to
+69
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. flexprops defined in flex.tsx The role prop was added to FlexProps inside Flex.tsx even though the component has a dedicated Flex.types.ts file. This violates the requirement that component prop interfaces live in *.types.ts, reducing consistency and maintainability. Agent Prompt
|
||
| } | ||
|
|
||
| const Flex = forwardRef( | ||
|
|
@@ -83,6 +87,7 @@ const Flex = forwardRef( | |
| style, | ||
| "aria-labelledby": ariaLabelledby, | ||
| "aria-label": ariaLabel, | ||
| role, | ||
| tabIndex, | ||
| "data-testid": dataTestId | ||
| }: FlexProps, | ||
|
|
@@ -153,6 +158,7 @@ const Flex = forwardRef( | |
| onMouseDown={onMouseDown} | ||
| style={overrideStyle} | ||
| aria-label={ariaLabel} | ||
| role={role} | ||
| > | ||
|
qodo-free-for-open-source-projects[bot] marked this conversation as resolved.
Comment on lines
158
to
162
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. flex root missing data-vibe The Flex root element still does not include a [data-vibe] attribute, even as new props (role) are being added to the root. This blocks consistent component identification/instrumentation expected by the compliance rule. Agent Prompt
|
||
| {children} | ||
| </Element> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. flexprops not in .types.ts
📘 Rule violation⚙ MaintainabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools