Fixed the issue where the text is selected after edit clicked