@progress/kendo-react-dateinputs 5.5.0-dev.202206271130 → 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.
@@ -230,7 +230,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
230
230
  if (this._lastSelectedSymbol && prevState.focused === this.state.focused) {
231
231
  this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol));
232
232
  }
233
- else if (this.selection.start === this.selection.end) {
233
+ else if (this.props.placeholder !== undefined && this.selection.start === this.selection.end) {
234
234
  this.setSelection({ start: 0, end: this.currentFormat.length });
235
235
  }
236
236
  this.setValidity();
@@ -519,6 +519,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
519
519
  return { start: start, end: end };
520
520
  };
521
521
  DateInputWithoutContext.prototype.selectionByIndex = function (index) {
522
+ // console.log(42, index);
522
523
  var selection = { start: index, end: index };
523
524
  for (var i = index, j = index - 1; i < this.currentFormat.length || j >= 0; i++, j--) {
524
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: 1656328244,
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
  };
@@ -233,7 +233,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
233
233
  if (this._lastSelectedSymbol && prevState.focused === this.state.focused) {
234
234
  this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol));
235
235
  }
236
- else if (this.selection.start === this.selection.end) {
236
+ else if (this.props.placeholder !== undefined && this.selection.start === this.selection.end) {
237
237
  this.setSelection({ start: 0, end: this.currentFormat.length });
238
238
  }
239
239
  this.setValidity();
@@ -522,6 +522,7 @@ var DateInputWithoutContext = /** @class */ (function (_super) {
522
522
  return { start: start, end: end };
523
523
  };
524
524
  DateInputWithoutContext.prototype.selectionByIndex = function (index) {
525
+ // console.log(42, index);
525
526
  var selection = { start: index, end: index };
526
527
  for (var i = index, j = index - 1; i < this.currentFormat.length || j >= 0; i++, j--) {
527
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: 1656328244,
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
  };