Skip to content

[combobox] The ref of Combobox.Icon should take an HTMLSpanElement #3790

@charliematters

Description

@charliematters

Bug report

Current behavior

The Combobox type refers to an HTMLDivElement, but the props type refers to a span

Expected behavior

Presumably both align on span as per the comment above?

Reproducible example

import * as React from 'react';
import type { BaseUIComponentProps } from "../../utils/types.js";
/**
 * An icon that indicates that the trigger button opens the popup.
 * Renders a `<span>` element.
 */
export declare const ComboboxIcon: React.ForwardRefExoticComponent<Omit<ComboboxIconProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
export interface ComboboxIconState {}
export interface ComboboxIconProps extends BaseUIComponentProps<'span', ComboboxIcon.State> {}

Base UI version

1.1.0

Which browser are you using?

NA

Which OS are you using?

NA

Which assistive tech are you using (if applicable)?

None

Additional context

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions