Skip to content

amp-autocomplete: should not fetch data if min-characters constraint is not satisfied. #26

@dadhichaditya

Description

@dadhichaditya

As observed:

  • amp-autocomplete has an attribute min-characters which does not show the results in Gmail inbox if no. of characters typed are less than the attribute value; which is fine
  • but it actually hits the src endpoint to fetch emote data even if there is no intention of showing that data in inbox
  • ideally, min-characters value should be honoured before fetching remote data.
  • this increases the number of API hits tremendously

Also, what kind of security measures should be taken to avoid any misuse of API's. Read this but there is not example for implementing this #19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions