[READ-ONLY] Mirror of https://github.com/probablykasper/date-picker-svelte. Date and time picker for Svelte date-picker-svelte.kasper.space
calendar date date-picker date-time-picker datepicker package svelte time
0

Configure Feed

Select the types of activity you want to include in your feed.

Use numeric keyboard in time field

Kasper (Feb 26, 2024, 7:18 PM +0100) 7e13a8dc 90f41755

+5
+1
CHANGELOG.md
··· 3 3 ## Next 4 4 - Fix time field sometimes showing a value outside `min`/`max` 5 5 - Fix time field losing highlight after pressing left/right arrow keys 6 + - Use numeric keyboard in time field 6 7 7 8 ## 2.10.1 - 2023 Dec 6 8 9 - Fix view not updating when value changes externally with `browseWithoutSelecting`
+4
src/lib/TimePicker.svelte
··· 153 153 aria-label="Hours" 154 154 tabindex="0" 155 155 contenteditable 156 + inputmode="numeric" 156 157 on:keydown={keydown} 157 158 on:input={input} 158 159 on:focus={focus}>{('00' + browseDate.getHours()).slice(-2)}</span ··· 163 164 aria-label="Minutes" 164 165 tabindex="0" 165 166 contenteditable 167 + inputmode="numeric" 166 168 on:keydown={keydown} 167 169 on:input={input} 168 170 on:focus={focus}>{('00' + browseDate.getMinutes()).slice(-2)}</span ··· 174 176 aria-label="Seconds" 175 177 tabindex="0" 176 178 contenteditable 179 + inputmode="numeric" 177 180 on:keydown={keydown} 178 181 on:input={input} 179 182 on:focus={focus}>{('00' + browseDate.getSeconds()).slice(-2)}</span ··· 185 188 aria-label="Milliseconds" 186 189 tabindex="0" 187 190 contenteditable 191 + inputmode="numeric" 188 192 on:keydown={keydown} 189 193 on:input={input} 190 194 on:focus={focus}>{('000' + browseDate.getMilliseconds()).slice(-3)}</span