Remove focus from previously focused node on click

This commit fixes the issue that a focused element cannot lose
focus when the draggable element is clicked.