javascript - window.getSelection() on mouseup returns previous selection -


When clicking on the pre-selected text, it is unselected and the cursor is visible. This is where my problem appears - on the mouseup event, window.getSelection () still gives the previous selection (category). How to get the right selection (cursor)?


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

Camel ProducerTemplate possible memory leak -

javascript - Adhering to a max length setting with jshint -