fix issue where clicking the delete button would initiate a drag