@progress/kendo-react-dateinputs 5.5.0-dev.202206241236 → 5.5.0-dev.202206271315

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.
@@ -132,7 +132,9 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
132
132
  _this.setSelection(_this.selectionByIndex(_this.selection.start));
133
133
  };
134
134
  _this.nativeWheel = function (event) {
135
- event.preventDefault();
135
+ if (document.activeElement === _this.element) {
136
+ event.preventDefault();
137
+ }
136
138
  };
137
139
  _this.wheel = function (event) {
138
140
  if (document.activeElement !== _this.element) {
@@ -228,7 +230,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
228
230
  if (this._lastSelectedSymbol && prevState.focused === this.state.focused) {
229
231
  this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol));
230
232
  }
231
- else if (this.selection.start === this.selection.end) {
233
+ else if (this.props.placeholder !== undefined && this.selection.start === this.selection.end) {
232
234
  this.setSelection({ start: 0, end: this.currentFormat.length });
233
235
  }
234
236
  this.setValidity();
@@ -517,6 +519,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
517
519
  return { start: start, end: end };
518
520
  };
519
521
  DateInputWithoutContext.prototype.selectionByIndex = function (index) {
522
+ // console.log(42, index);
520
523
  var selection = { start: index, end: index };
521
524
  for (var i = index, j = index - 1; i < this.currentFormat.length || j >= 0; i++, j--) {
522
525
  if (i < this.currentFormat.length && this.currentFormat[i] !== '_') {
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-dateinputs',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1656072838,
8
+ publishDate: 1656334528,
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
  };
@@ -135,7 +135,9 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
135
135
  _this.setSelection(_this.selectionByIndex(_this.selection.start));
136
136
  };
137
137
  _this.nativeWheel = function (event) {
138
- event.preventDefault();
138
+ if (document.activeElement === _this.element) {
139
+ event.preventDefault();
140
+ }
139
141
  };
140
142
  _this.wheel = function (event) {
141
143
  if (document.activeElement !== _this.element) {
@@ -231,7 +233,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
231
233
  if (this._lastSelectedSymbol && prevState.focused === this.state.focused) {
232
234
  this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol));
233
235
  }
234
- else if (this.selection.start === this.selection.end) {
236
+ else if (this.props.placeholder !== undefined && this.selection.start === this.selection.end) {
235
237
  this.setSelection({ start: 0, end: this.currentFormat.length });
236
238
  }
237
239
  this.setValidity();
@@ -520,6 +522,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
520
522
  return { start: start, end: end };
521
523
  };
522
524
  DateInputWithoutContext.prototype.selectionByIndex = function (index) {
525
+ // console.log(42, index);
523
526
  var selection = { start: index, end: index };
524
527
  for (var i = index, j = index - 1; i < this.currentFormat.length || j >= 0; i++, j--) {
525
528
  if (i < this.currentFormat.length && this.currentFormat[i] !== '_') {
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-dateinputs',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1656072838,
11
+ publishDate: 1656334528,
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
  };