@luftborn/custom-elements 2.5.3 → 2.5.5

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/demo/index.min.js CHANGED
@@ -3032,6 +3032,7 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
3032
3032
  this.date.addEventListener('change', function () {
3033
3033
  _this.display.value = _this.formatDate();
3034
3034
  _this.change(null);
3035
+ _this.date.blur();
3035
3036
  });
3036
3037
  this.datepicker.addEventListener('click', function () {
3037
3038
  _this.showDatePicker();
@@ -3087,12 +3088,14 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
3087
3088
  return (_a = dateFormats[this.dateFormat]) !== null && _a !== void 0 ? _a : null;
3088
3089
  };
3089
3090
  CustomFormatDateFieldElement.prototype.showDatePicker = function () {
3090
- try {
3091
- this.date.showPicker();
3092
- }
3093
- catch (error) {
3091
+ if ((!!window.ApplePaySetupFeature || !!window.safari)) {
3094
3092
  this.date.click();
3095
3093
  }
3094
+ else {
3095
+ if (this.date.showPicker) {
3096
+ this.date.showPicker();
3097
+ }
3098
+ }
3096
3099
  };
3097
3100
  CustomFormatDateFieldElement = __decorate([
3098
3101
  (0, custom_element_decorator_1.default)({