Skip to content

Commit

Permalink
Merge pull request #843 from OutSystems/ROU-4542
Browse files Browse the repository at this point in the history
[ROU-4542]: DatePicker - Fix screen scroll when time is in use.
  • Loading branch information
joselrio committed Oct 16, 2023
2 parents 213886f + 76c0891 commit 2b3a7a6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@

// Has Time
&.hasTime {
/* This will implement a workaround:
* - When Time is present and a date is selected, library will set focus to the Time input,
* If Time input is not inside at the screen boundaries, browser will force a document scroll in order
* be possible to put that input inside the boundaries, which creates an issue due content will be moved
* to a place where then it's not possible to came from.
**/
position: fixed;

.flatpickr-time {
border: var(--border-size-none);
height: 30px;
Expand Down

0 comments on commit 2b3a7a6

Please sign in to comment.