Skip to content

Select same date with linked picker #2840

Closed Answered by christophe-fms
christophe-fms asked this question in Q&A
Discussion options

You must be logged in to vote

I finally found the solution by setting the hour in the first picker update

        linkedPicker1Element.addEventListener(tempusDominus.Namespace.events.change, (e) => {
              let startOfDay = e.detail.date;
              startOfDay.setHours(0,0,0)
              linked2.updateOptions({

                  restrictions: {
                      minDate: startOfDay
                  }
              });
          });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Eonasdan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant