tom-select
tom-select copied to clipboard
Plugin "Restore on Backspace" does not work with custom values (not selected from list of existing values)
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
- Go to https://tom-select.js.org/plugins/restore-on-backspace/
- Type in "Test1234"
- Press Enter
- Press Backspace
- "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
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
Not stale.
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