Prevent problems of clicking on caret elements