Skip to content

Commit 8e93929

Browse files
committed
fix: return the correct element in focusElement()
fix a wrong behavior because it was always assuming that the focused element was the start date element, but now with the range it could also be the end date element Closes #17
1 parent 9aef228 commit 8e93929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vcf-date-range-picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ import { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js';
467467
* @protected
468468
*/
469469
get focusElement() {
470-
return this._inputStart() || this;
470+
return this.shadowRoot.activeElement || this._inputStart() || this;
471471
}
472472

473473
/** @private */

0 commit comments

Comments
 (0)