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 -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -