mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +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);
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user