Guard against unpredictable textarea deselection on IE

Closes #1240