@snabcentr/client-ui 5.3.2 → 5.3.3

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.
@@ -1128,7 +1128,12 @@ class ScSelectOnFocusinDirective {
1128
1128
  // eslint-disable-next-line class-methods-use-this
1129
1129
  onFocusIn(target) {
1130
1130
  if (target instanceof HTMLInputElement) {
1131
- target.select();
1131
+ // Safari может сбрасывать выделение после focusin при клике мышью.
1132
+ setTimeout(() => {
1133
+ if (document.activeElement === target) {
1134
+ target.select();
1135
+ }
1136
+ });
1132
1137
  }
1133
1138
  }
1134
1139
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScSelectOnFocusinDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }