tribute
tribute copied to clipboard
Removing items with backspace is not working when added by showMenuForCollection menu
How can we reproduce this bug?
- Open the menu with tribute.showMenuForCollection(input);
- Select an item
- Try to remove the item with backspace
Also reproducible in the demo https://zurb.github.io/tribute/example/:
- Add an item with the @mention link
- Try to remove the item with backspace
What did you expect to happen? Removing the item
What happened instead? Nothing
Hello, I am also facing the same issue. When contenteditable is set to false in selectTemplate method, it is not clearing the mention link with backspace.
add this code in tribute.js it should work
{ key: "input", value: function input(instance, event) { instance.inputEvent = true; instance.keydown.call(this, instance, event); } }
You can add   in front of innerHTML after showMenuForCollection;