File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/widgets/inputs/input-date Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 66 <div :key = " pureValue" >Pure values: {{pureValue}}</div >
77 <div :key = " pureAvailabilities" >Pure av: {{pureAvailabilities}}</div >
88 <form-field type = " country" name = " country" label = " Country" />
9+ <form-field type = " date" name = " birthday" label = " Bithday" />
910
1011
1112 <form-field :name =" name" :label = " name === 'username' ? 'Username' : 'Age'" />
@@ -46,6 +47,9 @@ setInterval(() => {
4647}, 50 );
4748
4849
50+ form .oninput (' birthday' , v => {
51+ console .log (v )
52+ })
4953const values = ref (0 );
5054const changes = ref ({});
5155const pureValue= ref ({});
Original file line number Diff line number Diff line change @@ -100,6 +100,9 @@ function handleUserHandInput(input: string) {
100100function emitInput(date : Date | null ) {
101101 if (props .disabled ) return false ;
102102 emit (' update:modelValue' , date ? date .toISOString () : date );
103+
104+ // Cleaning insideValue if date is NULL. Also, this step clean input value.
105+ if (! date ) insideValue .value = " "
103106}
104107
105108
You can’t perform that action at this time.
0 commit comments