File tree Expand file tree Collapse file tree 2 files changed +13
-15
lines changed
Expand file tree Collapse file tree 2 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 9191 return String (value ).padStart (2 , ' 0' );
9292 }
9393
94- function readInputValue(event : Event ): string {
95- const target = event .target as HTMLInputElement | null ;
96- return target ?.value ?? ' ' ;
97- }
98-
9994 function normalizeDateInput(value : string ): string | null {
10095 const trimmed = value .trim ();
10196 if (! trimmed ) return null ;
203198 <div class =" result-grid__filters-row result-grid__filters-row--main" >
204199 {#key datePickerResetKey }
205200 <div class =" result-grid__filters-fields" >
206- <DatePicker >
201+ <DatePicker
202+ datePickerType =" single"
203+ dateFormat =" m/d/Y"
204+ bind:value ={fromDateInput }
205+ >
207206 <DatePickerInput
208207 id =" result-grid-from-date"
209208 size =" sm"
210209 labelText =" From date"
211210 placeholder =" mm/dd/yyyy"
212- bind:value ={fromDateInput }
213- on:input ={(event ) => {
214- fromDateInput = readInputValue (event );
215- }}
216211 >
217212 <span slot =" labelText" class =" result-grid__date-label" >
218213 <span >From date</span >
224219 </span >
225220 </DatePickerInput >
226221 </DatePicker >
227- <DatePicker >
222+ <DatePicker
223+ datePickerType =" single"
224+ dateFormat =" m/d/Y"
225+ bind:value ={toDateInput }
226+ >
228227 <DatePickerInput
229228 id =" result-grid-to-date"
230229 size =" sm"
231230 labelText =" To date"
232231 placeholder =" mm/dd/yyyy"
233- bind:value ={toDateInput }
234- on:input ={(event ) => {
235- toDateInput = readInputValue (event );
236- }}
237232 >
238233 <span slot =" labelText" class =" result-grid__date-label" >
239234 <span >To date</span >
Original file line number Diff line number Diff line change 5959 align-items : center;
6060 gap : 0.25rem ;
6161}
62+ .bx--date-picker .bx--date-picker--single .bx--date-picker__input {
63+ width : 9rem ;
64+ }
6265
6366.result-grid__soft-loading {
6467 display : flex;
You can’t perform that action at this time.
0 commit comments