react-autocomplete-input icon indicating copy to clipboard operation
react-autocomplete-input copied to clipboard

Undo/Ctrl-Z function is not working as expected

Open holgerschillack opened this issue 3 years ago • 1 comments

When using autocomplete on e.g. the "@" symbol in the example the input history gets deleted. So Undo/Ctrl-Z only works back to the last autocomplete action.

Repro steps:

  1. Use the example below
  2. type something, then type '@' and choose value, then type again something.
  3. Now you can only undo your typings until the last '@' tag was inserted.

Is there a solution to get the expected behaviour, as like in the moncao editor, so the tag gets 'un'-inserted and so on?

import 'react-autocomplete-input/dist/bundle.css';

<TextField trigger={["@", "@@"]} options={{"@": ["aa", "ab", "abc", "abcd"], "@@": ["az", "ar"]}} />```

holgerschillack avatar May 31 '21 12:05 holgerschillack

yeah, that's known issue outlined in documentation. Don't have time to fix myself but will gladly merge a PR

yury-dymov avatar Oct 02 '22 22:10 yury-dymov

Closing due to inactivity

yury-dymov avatar Sep 29 '23 20:09 yury-dymov