Skip to content

Main input events take object as an argument regardless of the list structure #19

@Raiondesu

Description

@Raiondesu

I'm submitting a ...

  • bug report
  • feature request
  • support request

What is the current behavior?

select, input and hover events take an object as an item argument, even if the list itself didn't contain objects.

Example:

// Input list:
[ 'apple', 'banana', 'cat' ]

// `select` event's argument if 'banana' is selected
{
  title: 'banana',
  id: 1
}

What is the expected behavior?

The prescribed events should adapt to the current list input whatever the internal converted structure is.

For example:

// Input list:
[ 'apple', 'banana', 'cat' ]

// `select` event's argument if 'banana' is selected
'banana'

What is the motivation / use case for changing the behavior?

Usability.

Metadata

Metadata

Labels

bugSomething isn't workingenhancementNew feature or requestrefactoringCode smells, needs refactoring

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions