Skip to content

[BUG] - isDisabled for AutocompleteItem is deprecated in react-aria #5863

@AshotN

Description

@AshotN

HeroUI Version

2.8.5

Describe the bug

<AutocompleteItem isDisabled>
	Loading
</AutocompleteItem>

isDisabled is marked as deprecated by react-aria

export interface AriaOptionProps {
    /**
     * Whether the option is disabled.
     * @deprecated
     */
    isDisabled?: boolean;
...

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

<AutocompleteItem isDisabled>

Expected behavior

HeroUI should apply the disabled styling to isReadonly instead

<AutocompleteItem isReadonly>
	Loading
</AutocompleteItem>

Screenshots or Videos

No response

Operating System Version

Linux

Browser

Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions