Skip to content

Commit 2b3a7a6

Browse files
authored
Merge pull request #843 from OutSystems/ROU-4542
[ROU-4542]: DatePicker - Fix screen scroll when time is in use.
2 parents 213886f + 76c0891 commit 2b3a7a6

File tree

1 file changed

+8
-0
lines changed
  • src/scripts/Providers/OSUI/SharedProviderResources/Flatpickr/scss

1 file changed

+8
-0
lines changed

src/scripts/Providers/OSUI/SharedProviderResources/Flatpickr/scss/_flatpickr.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@
3636

3737
// Has Time
3838
&.hasTime {
39+
/* This will implement a workaround:
40+
* - When Time is present and a date is selected, library will set focus to the Time input,
41+
* If Time input is not inside at the screen boundaries, browser will force a document scroll in order
42+
* be possible to put that input inside the boundaries, which creates an issue due content will be moved
43+
* to a place where then it's not possible to came from.
44+
**/
45+
position: fixed;
46+
3947
.flatpickr-time {
4048
border: var(--border-size-none);
4149
height: 30px;

0 commit comments

Comments
 (0)