Fix text selection when using dnd