TarekRaafat / autoComplete.js

Simple autocomplete pure vanilla Javascript library.
https://tarekraafat.github.io/autoComplete.js
Apache License 2.0
3.95k stars 239 forks source link

Cannot move to next line in contenteditable div #249

Closed CodeWithOz closed 3 years ago

CodeWithOz commented 3 years ago
TarekRaafat commented 3 years ago

Hello @CodeWithOz,

Thank you for reporting your use case. I've already implemented in the coming version v10.2 a solution for such use cases.

Cheers, and have a nice day! :)

CodeWithOz commented 3 years ago

Awesome work, thanks! When can we expect v10.2 to be released?

TarekRaafat commented 3 years ago

Thanks! v10.2 will be released early next week.

CodeWithOz commented 3 years ago

@TarekRaafat hey it seems the problem isn't fully fixed, now I can only create one newline at a time. If the line I'm on doesn't contain any text, I can't create another new line. Is that expected? If so, can I disable it? Previously I used to be able to create as many newlines as I wanted even if they were all empty.

TarekRaafat commented 3 years ago

Hello @CodeWithOz,

Are you using v10.2.6 with the submit API?

CodeWithOz commented 3 years ago

No I'm not using it. I don't specify it in my config and from the docs the default is false, so that should mean it's disabled.

TarekRaafat commented 3 years ago

No I'm not using it. I don't specify it in my config and from the docs the default is false, so that should mean it's disabled.

You need to set submit to true to enable the default enter button behavior, which is disabled by default.

Would you please try it and let me know how it goes?

CodeWithOz commented 3 years ago

@TarekRaafat yep that was the fix, thank you!