@colijnit/corecomponents_v12 256.1.13 → 256.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-corecomponents_v12.umd.js +6 -0
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/input-search/input-search.component.js +7 -1
- package/fesm2015/colijnit-corecomponents_v12.js +6 -0
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/input-search/input-search.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -8273,6 +8273,9 @@
|
|
|
8273
8273
|
var enterKeys = ['Enter', 'NumpadEnter', 'Go'];
|
|
8274
8274
|
if (enterKeys.includes(event.key)) {
|
|
8275
8275
|
event.preventDefault();
|
|
8276
|
+
if (this.isMobileDevice()) {
|
|
8277
|
+
event.target.blur();
|
|
8278
|
+
}
|
|
8276
8279
|
this.search.next(this.model);
|
|
8277
8280
|
}
|
|
8278
8281
|
};
|
|
@@ -8280,6 +8283,9 @@
|
|
|
8280
8283
|
this.model = model;
|
|
8281
8284
|
this.modelChange.next(this.model);
|
|
8282
8285
|
};
|
|
8286
|
+
InputSearchComponent.prototype.isMobileDevice = function () {
|
|
8287
|
+
return /Android|iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
8288
|
+
};
|
|
8283
8289
|
return InputSearchComponent;
|
|
8284
8290
|
}(BaseInputComponent));
|
|
8285
8291
|
InputSearchComponent.decorators = [
|