When the user clicks on the input element, we want to show the Datepicker. Here, we can either use the click or focus event. We’ll use click for now. (You’ll learn why we need to switch to focus later).
The input’s background turns blueish-grey when we click inside the Datepicker. This hints to users they no longer focusing on the input.
It’s true that they’re no longer focusing on the input, but they’re they’re interacting with the Datepicker. They’re trying to find the correct date! In this case, we can assume they’re still want to keep focus on the <input> element.
Unfortunately, it’s confusing to talk about focus when you haven’t learned how browsers manage focus. So we’ll continue to work on this in the Keyboard module.