Skip to content

Commit 9aef228

Browse files
committed
fix: fix enter keypress when editing end date
set correct _selectingStartDate value when the focus is on the input end element Closes #18
1 parent fc75d72 commit 9aef228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vcf-date-range-picker-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ export const DateRangePickerMixin = (subclass) =>
11511151

11521152
break;
11531153
case 'enter': {
1154-
1154+
if (this.shadowRoot.activeElement === this._inputEndElement) this._selectingStartDate=false;
11551155
if (this._selectingStartDate) {
11561156
const parsedStartDate = this._getParsedDate(this._inputStartValue);
11571157
const isValidStartDate = this._isValidDate(parsedStartDate);

0 commit comments

Comments
 (0)