Skip to content

Commit 1bc7d31

Browse files
Fix time field not losing highlight
1 parent 3809ff5 commit 1bc7d31

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Fix time field sometimes showing a value outside `min`/`max`
66
- Fix time field losing highlight after pressing left/right arrow keys
77
- Use numeric keyboard in time field
8+
- Fix time field not losing highlight
89

910
## 2.10.1 - 2023 Dec 6
1011
- Fix view not updating when value changes externally with `browseWithoutSelecting`

src/lib/TimePicker.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@
215215
position: relative
216216
z-index: 1
217217
padding: 4px 0px
218+
&:not(:focus)::selection
219+
background-color: transparent
218220
&:first-child
219221
padding-left: 6px
220222
&:last-child

0 commit comments

Comments
 (0)