Notify the text field selection changed in the next run loop.

We ran into a case where the input element's selection had not changed
yet when mouseUp was called. This lead to text being incorrectly wiped
out when the previous selection spanned multiple characters.