But it is showing the notification in the below block (this.resizeNotice.classList.remove('hide') ). I agree that adding hide before return might be more precise for composing the sms, but it should be a rear chance that we need to compose a sms with resize notification is on, and it will dismiss after timeout anyway.