ngStorage icon indicating copy to clipboard operation
ngStorage copied to clipboard

NgStorage connected to input or textarea

Open bjelkenhed opened this issue 11 years ago • 1 comments

Hi, I have been trying to use ngStorage and connect $storage.text for example to a input or a textarea by using the ngModel attribut. It kind of works but when the user types fast in the field the text flip back and character gets erased all the time. Do you have any example for how this should be done to avoid these effects?

/best regards, Magnus

bjelkenhed avatar Feb 17 '14 19:02 bjelkenhed

This sounds like the IE issue with it sending events to the window that had the storage change. There is a patch in #47 that will work around that. The other option is not to bind to the textarea/input and copy the changes over on form submission or some other even.

shirro avatar May 25 '14 22:05 shirro