Skip to content

DataList: Remove unneeded SelectableRowObject #8423

@tlabaj

Description

@tlabaj

There is only one item in the SelectableRowObject. Previously it also had a type that was removed making the need of the object obsolete.

Suggestion to make this update:

  1. Remove the selectableRow prop

    Replace it with a prop called onSelectableRowChange

/** Callback that executes when the screen reader accessible element receives a change event */ onSelectableRowChange?: (event: React.FormEvent<HTMLInputElement>, id: string) => void;
(Note: the event should be first in parameter)

  1. Remove the SelectableRowObject
    export interface SelectableRowObject {
    /** Callback that executes when the screen reader accessible element receives a change event */
    onChange: (id: string, event: React.FormEvent<HTMLInputElement>) => void;
    }

Metadata

Metadata

Assignees

Labels

Breaking change 💥this change requires a major release and has API changes.PF5

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions