Fix text selection when dnd is used