Skip to content

SearchBar Component Missing handleKeyPress Method #2

@jlag34

Description

@jlag34

It looks like you skipped creating the method handleKeyPress. Check out the code below on how to implement that functionality (will search when you hit the enter key):

handleKeyPress(e) {
  if(e.key === `Enter`) {
     this.search();
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions