Skip to content

Control Autocomplete options position #15640

@jschmuecking

Description

@jschmuecking

Please describe the feature you would like to request.

I'd like to be able to control the position of the autocomplete options. For example via an additional input to autocomplete with options:

  • auto: Current behavior
  • bottom: force to always show below the input field
  • top: force to always show above the input field

Or like with scroll strategy make it possible to inject a custom positionStrategy.

What is the use-case or motivation for this proposal?

Right now the options decide whether to position above the trigger element or below the element dependent on the space in the viewport. Sometimes I'd like to force the autocomplete to display the options always below, e.g. when some importent UI-elements are above the trigger element that would be hidden by displaying the auto complete options above and leaving these elements visible is more importent thant forcing the user to scroll such that the auto complete options are fully in the viewport again.

Is there anything else we should know?

Related requests are: #5205, #8540 and #11492

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions