chore(input): do not force blur on .input-cover tap

This commit is contained in:
Adam Bradley
2016-04-16 20:45:43 -05:00
parent 617d36d42c
commit 8141a38c93

View File

@ -42,9 +42,9 @@ export class NativeInput {
self.focusChange.emit(true); self.focusChange.emit(true);
function docTouchEnd(ev) { function docTouchEnd(ev) {
var tappedElement: any = ev.target; var tapped: HTMLElement = ev.target;
if (tappedElement && self.element()) { if (tapped && self.element()) {
if (tappedElement.tagName !== "INPUT" && tappedElement.tagName !== "TEXTAREA") { if (tapped.tagName !== "INPUT" && tapped.tagName !== "TEXTAREA" && !tapped.classList.contains('input-cover')) {
self.element().blur(); self.element().blur();
} }
} }