Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing items with backspace is not working when added by showMenuForCollection menu #843

Open
Roywcm opened this issue Sep 1, 2022 · 3 comments

Comments

@Roywcm
Copy link

Roywcm commented Sep 1, 2022

How can we reproduce this bug?

  1. Open the menu with tribute.showMenuForCollection(input);
  2. Select an item
  3. Try to remove the item with backspace

Also reproducible in the demo https://zurb.github.io/tribute/example/:

  1. Add an item with the @mention link
  2. Try to remove the item with backspace

What did you expect to happen?
Removing the item

What happened instead?
Nothing

@jyotisingh-tudip
Copy link

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.

@manikantayarramsetti1
Copy link

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); } }

@ccj-007
Copy link

ccj-007 commented Jan 17, 2024

You can add &nbsp in front of innerHTML after showMenuForCollection;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants