twitter / typeahead.js

typeahead.js is a fast and fully-featured autocomplete library
http://twitter.github.io/typeahead.js/
MIT License
16.52k stars 3.21k forks source link

New line isn't supported? || Line breaker #1811

Open beckylemesmash opened 1 year ago

beckylemesmash commented 1 year ago

Describe the bug A clear and concise description of what the bug is. My dataset has items with new line for example "line1\nline2" both suggestion and selection remove "\n"

To Reproduce Steps to reproduce the behavior:

  1. Create typeahead input
  2. Add item with new lines
  3. Search for item

Expected behavior Item would be displayed with new lines and after selection new line wouldn't be removed