fix issue when selecting an item with the mouse in a editable element