Skip to content

onKeyDown event on the SearchAutocomplete component is getting fired twice. #3684

@manasayedire

Description

@manasayedire

🐛 Bug Report

onKeyDown event on the SearchAutocomplete component is getting fired twice.

🤔 Expected Behavior

onKeyDown event on the SearchAutocomplete component should get fired once.

😯 Current Behavior

onKeyDown event on the SearchAutocomplete component is getting fired twice.

💁 Possible Solution

🔦 Context

💻 Code Sample

https://reactspectrum.blob.core.windows.net/reactspectrum/1b4d3af728d7eed74834601cc796ffb4ecd89966/docs/react-spectrum/SearchAutocomplete.html
https://codesandbox.io/s/jolly-moon-8ljsvy?file=/src/App.js

🌍 Your Environment

Software Version(s)
react-spectrum
Browser
Operating System

🧢 Your Company/Team

Adobe/Adobe Sign

🕷 Tracking Issue (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions