@progress/kendo-react-inputs 5.14.0-dev.202306011625 → 5.14.0-dev.202306020002
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/dist/cdn/js/kendo-react-inputs.js +1 -1
- package/dist/es/numerictextbox/NumericTextBox.js +5 -3
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/numerictextbox/NumericTextBox.js +4 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-inputs.js +1 -1
- package/package.json +16 -16
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import * as React from 'react';
|
|
13
13
|
import * as PropTypes from 'prop-types';
|
|
14
14
|
import { useInternationalization, useLocalization } from '@progress/kendo-react-intl';
|
|
15
|
-
import { classNames, guid, getTabIndex, dispatchEvent, createPropsContext, usePropsContext, kendoThemeMaps, useCustomComponent } from '@progress/kendo-react-common';
|
|
15
|
+
import { classNames, guid, getTabIndex, dispatchEvent, createPropsContext, usePropsContext, kendoThemeMaps, useCustomComponent, getActiveElement } from '@progress/kendo-react-common';
|
|
16
16
|
import { caretAltUpIcon, caretAltDownIcon } from '@progress/kendo-svg-icons';
|
|
17
17
|
import { FloatingLabel } from '@progress/kendo-react-labels';
|
|
18
18
|
import { validatePackage } from '@progress/kendo-react-common';
|
|
@@ -220,8 +220,9 @@ export var NumericTextBox = React.forwardRef(function (directProps, target) {
|
|
|
220
220
|
triggerChange(event, newState);
|
|
221
221
|
}, [props.format, props.min, props.max, props.step, props.onChange, props.readOnly, props.disabled, triggerChange, getCurrentState]);
|
|
222
222
|
var onWheelHandler = React.useCallback(function (event) {
|
|
223
|
+
var activeElement = getActiveElement(document);
|
|
223
224
|
if (!document ||
|
|
224
|
-
|
|
225
|
+
activeElement !== elementRef.current ||
|
|
225
226
|
!elementRef.current ||
|
|
226
227
|
props.readOnly ||
|
|
227
228
|
props.disabled) {
|
|
@@ -247,8 +248,9 @@ export var NumericTextBox = React.forwardRef(function (directProps, target) {
|
|
|
247
248
|
}, [props.onBlur, setForceUpdate, getImperativeHandle]);
|
|
248
249
|
var onMouseDown = React.useCallback(function (e) {
|
|
249
250
|
if (document && elementRef.current) {
|
|
251
|
+
var activeElement = getActiveElement(document);
|
|
250
252
|
e.preventDefault();
|
|
251
|
-
if (
|
|
253
|
+
if (activeElement !== elementRef.current) {
|
|
252
254
|
elementRef.current.focus();
|
|
253
255
|
}
|
|
254
256
|
}
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-inputs',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1685662221,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -223,8 +223,9 @@ exports.NumericTextBox = React.forwardRef(function (directProps, target) {
|
|
|
223
223
|
triggerChange(event, newState);
|
|
224
224
|
}, [props.format, props.min, props.max, props.step, props.onChange, props.readOnly, props.disabled, triggerChange, getCurrentState]);
|
|
225
225
|
var onWheelHandler = React.useCallback(function (event) {
|
|
226
|
+
var activeElement = (0, kendo_react_common_1.getActiveElement)(document);
|
|
226
227
|
if (!document ||
|
|
227
|
-
|
|
228
|
+
activeElement !== elementRef.current ||
|
|
228
229
|
!elementRef.current ||
|
|
229
230
|
props.readOnly ||
|
|
230
231
|
props.disabled) {
|
|
@@ -250,8 +251,9 @@ exports.NumericTextBox = React.forwardRef(function (directProps, target) {
|
|
|
250
251
|
}, [props.onBlur, setForceUpdate, getImperativeHandle]);
|
|
251
252
|
var onMouseDown = React.useCallback(function (e) {
|
|
252
253
|
if (document && elementRef.current) {
|
|
254
|
+
var activeElement = (0, kendo_react_common_1.getActiveElement)(document);
|
|
253
255
|
e.preventDefault();
|
|
254
|
-
if (
|
|
256
|
+
if (activeElement !== elementRef.current) {
|
|
255
257
|
elementRef.current.focus();
|
|
256
258
|
}
|
|
257
259
|
}
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-inputs',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1685662221,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
14
14
|
};
|