@progress/kendo-angular-buttons 7.0.5-dev.202203211448 → 7.0.5-dev.202203211505

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.
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-buttons',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1647874037,
12
+ publishDate: 1647875044,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
package/dist/es/util.js CHANGED
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /* tslint:disable:no-null-keyword */
6
6
  /* tslint:disable:no-bitwise */
7
+ import { detectDesktopBrowser, detectMobileOS } from "@progress/kendo-common";
7
8
  var resolvedPromise = Promise.resolve(null);
8
9
  /**
9
10
  * @hidden
@@ -95,3 +96,13 @@ export var getThemeColorClasses = function (componentType, prevFillMode, fillMod
95
96
  toAdd: newValue ? "k-" + componentType + "-" + fillMode + "-" + newValue : null
96
97
  };
97
98
  };
99
+ /**
100
+ * @hidden
101
+ *
102
+ * Returns true if the used browser is Firefox.
103
+ */
104
+ export var isFirefox = function (userAgent) {
105
+ var desktopBrowser = detectDesktopBrowser(userAgent);
106
+ var mobileOS = detectMobileOS(userAgent);
107
+ return (desktopBrowser && desktopBrowser.mozilla) || (mobileOS && mobileOS.browser === 'firefox');
108
+ };
@@ -9,7 +9,7 @@ import { isDocumentAvailable, isChanged, hasObservers, Keys } from '@progress/ke
9
9
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
10
  import { validatePackage } from '@progress/kendo-licensing';
11
11
  import { packageMetadata } from '../package-metadata';
12
- import { getStylingClasses, getThemeColorClasses } from '../util';
12
+ import { getStylingClasses, getThemeColorClasses, isFirefox } from '../util';
13
13
  const SPAN_TAG_NAME = 'SPAN';
14
14
  /**
15
15
  * Represents the Kendo UI Button component for Angular.
@@ -135,6 +135,10 @@ let ButtonDirective = class ButtonDirective {
135
135
  * If set to `true`, it disables the Button.
136
136
  */
137
137
  set disabled(disabled) {
138
+ //Required, because in FF focused buttons are not blurred on disabled
139
+ if (isFirefox(navigator.userAgent) && disabled) {
140
+ this.blur();
141
+ }
138
142
  this.isDisabled = disabled;
139
143
  this.renderer.setProperty(this.element, 'disabled', disabled);
140
144
  }