igeligel / react-in-out-textarea

A simple React.js User Interface Component that is like Google Translate with full TypeScript Support
MIT License
31 stars 22 forks source link

Feature: Auto Close Menu #93

Closed igeligel closed 3 years ago

igeligel commented 3 years ago

Type of Feature

How would it look like

When selecting an input or output option the menu should self-close by default.

Alternatively, an option can be passed to the component that enables or disables this option. This option should be called autoCloseMenuOnOptionSelection.

Resources

Files involved

binkpitch commented 3 years ago

Can I work on this?

igeligel commented 3 years ago

Hey @binkpitch For sure you can work on this. I will assign the issue to you. If you have any questions feel free to ask me. Some guidance:

  1. You probably want to extend the file OptionsOverlay.tsx and pass an onClick handler from index.tsx
  2. From index.tsx you can close the state of the overlay then.

Thanks a lot for wanting to work on this!