Fix logic for auto hide of properties modal button.