Skip to content

Show recent posts as suggestions when PostSearchControl input is focused #13

@tnke

Description

@tnke

This behavior should be configurable via a prop, something like showSuggestions: boolean.

When set to true, on focus of the input field, small number of recent posts should be shown as suggestions.

We could achieve similar results by setting minimum search length to 0, but that could cause unnecessary performance impact. The suggestions should only be fetched once the input field is focused.

For that reason, I'd make a separate prop for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions