@@ -395,15 +395,6 @@ export const DatePickerMixin = (subclass) =>
395
395
this . __setEnteredDate ( parsedDate ) ;
396
396
}
397
397
398
- /** @private */
399
- get _nativeInput ( ) {
400
- if ( this . inputElement ) {
401
- // TODO: support focusElement for backwards compatibility
402
- return this . inputElement . focusElement || this . inputElement ;
403
- }
404
- return null ;
405
- }
406
-
407
398
/**
408
399
* The input element's value when it cannot be parsed as a date, and an empty string otherwise.
409
400
*
@@ -903,7 +894,7 @@ export const DatePickerMixin = (subclass) =>
903
894
this . _focus ( ) ;
904
895
}
905
896
906
- const input = this . _nativeInput ;
897
+ const input = this . inputElement ;
907
898
if ( this . _noInput && input ) {
908
899
input . blur ( ) ;
909
900
this . _overlayContent . focusDateElement ( ) ;
@@ -969,8 +960,8 @@ export const DatePickerMixin = (subclass) =>
969
960
}
970
961
this . __commitParsedOrFocusedDate ( ) ;
971
962
972
- if ( this . _nativeInput && this . _nativeInput . selectionStart ) {
973
- this . _nativeInput . selectionStart = this . _nativeInput . selectionEnd ;
963
+ if ( this . inputElement && this . inputElement . selectionStart ) {
964
+ this . inputElement . selectionStart = this . inputElement . selectionEnd ;
974
965
}
975
966
// No need to revalidate the value after `_selectedDateChanged`
976
967
// Needed in case the value was not changed: open and close dropdown,
@@ -1007,8 +998,8 @@ export const DatePickerMixin = (subclass) =>
1007
998
1008
999
/** @private */
1009
1000
_setSelectionRange ( a , b ) {
1010
- if ( this . _nativeInput && this . _nativeInput . setSelectionRange ) {
1011
- this . _nativeInput . setSelectionRange ( a , b ) ;
1001
+ if ( this . inputElement ) {
1002
+ this . inputElement . setSelectionRange ( a , b ) ;
1012
1003
}
1013
1004
}
1014
1005
0 commit comments