Skip to content

Group options mouse bug? #1517

@ewilloughby

Description

@ewilloughby

Power Select Version - 5 (latest), Ember Versions Tested: 3.27, 4.2

When creating groups with collection options (built after the promises have resolved) and with search enabled, there seems to be a mouse select/hover bug. Keyboard input works well throughout, search works perfectly - but none of the options themselves are clickable unless the user first starts typing a search with keyboard. This seems to be a significant issue because the user cannot click the options in the dropdown, the intuitive first step they take. Can anyone else double-check me here? Am I missing something?

I threw up a barebones repo reproducing this and a screen recording as well: Repo with the bug

ember-select-mouse-issue.mov

Group option generated in manner from previous examples:
` options = this.fetchOptions();

@action
fetchOptions() {

var rentalOptions = this.store.peekAll('rental');

let groups = Ember.RSVP.all([rentalOptions]).then(([rentals]) => {
  return [
    {
      groupName: "Rentals",
      options: rentals
    }
  ];
});

return groups;

}`

Power Select in Template
`
<PowerSelect
@searchEnabled={{true}}
@options={{this.options}}
@selected={{this.title}}
@SEARCHFIELD={{"title"}}
@onchange={{this.renderSelection}}
@dropdownClass="policy-dropdown"
@allowClear={{true}}
@closeOnSelect={{true}}
@highlightOnHover={{true}}
as |thing|

{{thing.title}}
</PowerSelect>

{{yield}}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions