Skip to content

Commit

Permalink
feat(@clayui/core): LPD-35826 Allow props prefixed by "data-" to be r…
Browse files Browse the repository at this point in the history
…endered as attributes in Picker's Options
  • Loading branch information
cgmonte committed Sep 13, 2024
1 parent 0f04be3 commit 75d052d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/clay-core/src/picker/Option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export function Option({
disabled,
keyValue,
textValue,
...otherProps
}: Props) {
const {
activeDescendant,
Expand All @@ -95,6 +96,7 @@ export function Option({
if (isMobile) {
return (
<option
{...otherProps}
aria-describedby={ariaDescribedby}
disabled={disabled}
value={keyValue}
Expand All @@ -107,6 +109,7 @@ export function Option({
return (
<li role="presentation">
<button
{...otherProps}
{...hoverProps}
aria-describedby={ariaDescribedby}
aria-label={ariaLabel}
Expand Down

0 comments on commit 75d052d

Please sign in to comment.