#Question about trying to extend Autocomplete component

7 messages · Page 1 of 1 (latest)

serene owl
#

Hi, I was trying to extend the Autocomplete component, specifically when the event handler listens for the enter key. Currently, the behavior of Autocomplete in the event listener for the enter key is as so in the first image.

I'd like to add some logic to be executed if the dropdown is just opened, like so in the second image.

Here, someLogic would be another prop, similar to onItemSubmit. Is there a way to accomplish this in React without patching the library using patch-package?

viral burrow
hearty narwhal
viral burrow
hearty narwhal
viral burrow