JaleelB / emblor

A fully-featured tag input component built with shadcn/ui
https://emblor.jaleelbennett.com
MIT License
674 stars 31 forks source link

Backspace Not remove character. Please Help. #62

Closed webservice96 closed 2 months ago

webservice96 commented 3 months ago

Check the images.

image image image

webservice96 commented 3 months ago

The Problem is in the latest version. The 1.0.3 version is working fine. Please fix that issue on the latest version. I'm using in next.

JaleelB commented 3 months ago

@webservice96 Please be more descriptive of the problem. From what I can gather you're saying using backspace to delete a character in the input didn't work?

Additionally, I would recommend upgrading from version 1.0.3. Subsequent releases fixed some issue that this version introduced

rangwea commented 2 months ago

I have the same proble.

image
rangwea commented 2 months ago

I know why happened this problem, you need add this properties: image

JaleelB commented 2 months ago

I know why happened this problem, you need add this properties: image

@rangwea Yes, you need to handle the active tag index management externally—the code examples for each input demo reference this. I'll add a not in the documentation that highlights this fact better. Is it safe to assume that managing the active tag index externally fixed your issue?

JaleelB commented 2 months ago

I know why happened this problem, you need add this properties: image

Did this also fix your issue @webservice96?

jose-jacinto commented 2 months ago

Not the issue creator but I had a similar problem and @rangwea suggestion worked. I managed the indexes with const [activeTagIndex, setActiveTagIndex] = React.useState<number | null>(null); Thanks

JaleelB commented 2 months ago

For anyone facing this issue, visit the Keyboard Navigation page in the docs page: https://emblor.jaleelbennett.com/keyboard-interactions