update focusIsAttachment logic, only show focus when it is selected