Undo (ctrl + z) doesn't work for text area when I use jQuery autocomplete in IE

Jquery autocomplete interrupts cancellation in IE, in case of textarea, what could be the reason?

Try it,

Open link in IE

http://jqueryui.com/demos/autocomplete/#multiple

Enter any text in the input element, for example, enter "a" select "ActionScript" from the menu now do backpsace to remove characters.

Now cancel ctrl + z, it doesn't work why? can anyone explain?

Thank you in advance

+4
source share
1 answer

I had a similar problem:

Cancel html text input

In the end, I found out that if any JavaScript updated any visual elements, all the text fields on the page had their own reset cancel history. In my case, it was a timer updating the countdown clock, which made tracking and debugging difficult. I assume this is jQuery autocomplete causing the problem here. The difference is that it updates the actual text field, not the external element, but I suspect this is the same problem. I'm sure this is a bug in IE, so you cannot do much without adding your own history functions to the text box.

This is a problem specific to Internet Explorer. I suggest you try your page using Chrome or Firefox.

+2
source

Source: https://habr.com/ru/post/1390774/


All Articles