@progress/kendo-react-inputs 5.8.1-dev.202210141030 → 5.8.1-dev.202210170953

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.
@@ -251,7 +251,9 @@ export var NumericTextBox = React.forwardRef(function (directProps, target) {
251
251
  }
252
252
  }, []);
253
253
  React.useLayoutEffect(function () {
254
- if (elementRef.current && stateRef.current.selectionStart !== undefined && stateRef.current.selectionEnd !== undefined) {
254
+ // The input element's type ('number') does not support selection.
255
+ if (elementRef.current && elementRef.current.type !== 'number' &&
256
+ stateRef.current.selectionStart !== undefined && stateRef.current.selectionEnd !== undefined) {
255
257
  elementRef.current.selectionStart = stateRef.current.selectionStart;
256
258
  elementRef.current.selectionEnd = stateRef.current.selectionEnd;
257
259
  stateRef.current.selectionStart = undefined;
@@ -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: 1665742266,
8
+ publishDate: 1665999476,
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
  };
@@ -254,7 +254,9 @@ exports.NumericTextBox = React.forwardRef(function (directProps, target) {
254
254
  }
255
255
  }, []);
256
256
  React.useLayoutEffect(function () {
257
- if (elementRef.current && stateRef.current.selectionStart !== undefined && stateRef.current.selectionEnd !== undefined) {
257
+ // The input element's type ('number') does not support selection.
258
+ if (elementRef.current && elementRef.current.type !== 'number' &&
259
+ stateRef.current.selectionStart !== undefined && stateRef.current.selectionEnd !== undefined) {
258
260
  elementRef.current.selectionStart = stateRef.current.selectionStart;
259
261
  elementRef.current.selectionEnd = stateRef.current.selectionEnd;
260
262
  stateRef.current.selectionStart = undefined;
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-inputs',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1665742266,
11
+ publishDate: 1665999476,
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
  };