autocomplete
autocomplete copied to clipboard
Fix not being able to create newlines in a textarea when `preventSubm…
…itis
true`.
Assume the following:
- Autocomplete is used for a
textarea
element (instead of aninput
element). -
preventSubmit
istrue
. - No autocomplete menu is visible.
- User wants to create a newline by pressing the enter key.
- Without this change, no newline is inserted, because
preventSubmit
was too eager to "cancel" the keypress even when no autocomplete menu was open.
Fixes https://github.com/kraaden/autocomplete/issues/72
@kraaden thank you a lot for merging #90! 🌞 Do you have any comments on this other PR? 🙂
@kraaden Any comments, please? 🙂
This PR is now redundant due to the following commit:
https://github.com/kraaden/autocomplete/commit/cb9356074f9917dd9758f66695a6bd356cf7c24d