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

Plugin "Restore on Backspace" does not work with custom values (not selected from list of existing values) #639

Open
DavidMoraisFerreira opened this issue Oct 18, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@DavidMoraisFerreira
Copy link

DavidMoraisFerreira commented Oct 18, 2023

Describe the bug
The restore on backspace plugin only works on values which are already specified in the HTML tag "values". It does not work when entering new text values.

To Reproduce

  1. Go to https://tom-select.js.org/plugins/restore-on-backspace/
  2. Type in "Test1234"
  3. Press Enter
  4. Press Backspace
  5. "Test1234" is completely removed, should be editable

(!) For this bug to occur, persist must be set to false.

Expected behavior
If you repeat the same steps with "awesome" (make sure to remove it first), the "awesome" becomes editable.

Additional context
Add any other context about the problem here.

  • Windows 10
  • Firefox 118.0.1
@DavidMoraisFerreira DavidMoraisFerreira added the bug Something isn't working label Oct 18, 2023
Copy link

This issue has not been active in 120 days and has been marked "stale". Remove stale label or comment or this will be closed in 15 days

@github-actions github-actions bot added the stale No activity label Feb 26, 2024
@DavidMoraisFerreira
Copy link
Author

Not stale.

@github-actions github-actions bot removed the stale No activity label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant