Skip to content

positionFixed + pagination does not work properly #431

@gagarski

Description

@gagarski

Version

3.4.1

Description

Pagination does not work properly when positionFixed or bodyContainer property is set to true.

Steps to reproduce

  1. Create the following component:
<Typeahead options=["a", "b", "c", "d", "e"] maxResults={3} paginate positionFixed>
  1. Click on this autocomplete and try to click the bottom option (load more results)

Expected Behavior

More results are loaded

Actual Behavior

Autocomplete menu is hidden.

Further debugging shows that onPaginate callback is called if present.

Probably the same happens on selecting a regular value, but menu closing and calling onSelect is what the user wants in most cases.

My wild guess is that the reason is broken "click outside" handler which is called every time on menu item click when positionFixed is enabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions