No matter what I do, I can’t get IE to select() the value in a after a “paste” event in canceled.
Look at this URL in IE, and paste anything into the textarea:
The text should be selected after pasting. This works in Chrome, but can’t figure out how to get select() to work when i’m canceling the paste even in IE:
Try this:
Don’t ask me why it works, I just got curious and found a solution.
It seems that selecting just doesn’t work in the context of the paste event handler, maybe there’s something that happens afterwards in the browser that deselects (though
preventDefaultstill didn’t help)