mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
chore(input): do not force blur on .input-cover tap
This commit is contained in:
@ -42,9 +42,9 @@ export class NativeInput {
|
||||
self.focusChange.emit(true);
|
||||
|
||||
function docTouchEnd(ev) {
|
||||
var tappedElement: any = ev.target;
|
||||
if (tappedElement && self.element()) {
|
||||
if (tappedElement.tagName !== "INPUT" && tappedElement.tagName !== "TEXTAREA") {
|
||||
var tapped: HTMLElement = ev.target;
|
||||
if (tapped && self.element()) {
|
||||
if (tapped.tagName !== "INPUT" && tapped.tagName !== "TEXTAREA" && !tapped.classList.contains('input-cover')) {
|
||||
self.element().blur();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user