File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
components/DatePickerInput Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 272272 if (! props .isMenuOpen || (inline .value .enabled && inline .value .input )) {
273273 emit (' blur' );
274274 }
275- if (rootProps .autoApply && textInput .value .enabled && parsedDate .value && ! props .isMenuOpen ) {
275+ if (
276+ (rootProps .autoApply && textInput .value .enabled && parsedDate .value && ! props .isMenuOpen ) ||
277+ textInput .value .applyOnBlur
278+ ) {
276279 emit (' set-input-date' , parsedDate .value );
277280 emit (' select-date' );
278281 parsedDate .value = null ;
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export const defaultTextInputOptions = {
4545 escClose : true ,
4646 format : undefined ,
4747 maskFormat : undefined ,
48+ applyOnBlur : false ,
4849} ;
4950
5051export const defaultHighlightOptions = {
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ export interface TextInputConfig {
122122 escClose : boolean ;
123123 format : string | string [ ] | ( ( value : string ) => Date | null ) ;
124124 maskFormat : string ;
125+ applyOnBlur : boolean ;
125126}
126127
127128export interface RangeConfig {
You can’t perform that action at this time.
0 commit comments