fix(popup): correct popup hide for IE11 (closes #4910)