Keep p:datePicker popups closing on a pick

Proprietary

Add focusOnSelect="true" to a p:datePicker whose popup closed on a pick. From PrimeFaces 15.0.8 it stays open unless that is set, which also returns focus to the input, as it did on 14. A module already on 15.0.8 or later is left alone, as it runs with the popup staying open. With the attribute, setDate() called from a script also opens the popup. A picker that gets its time mode from a LocalDateTime or LocalTime property gets the attribute too, as a page cannot show that.

io.moderne.java.primefaces.AddFocusOnSelectToDatePicker
mod run . --recipe=io.moderne.java.primefaces.AddFocusOnSelectToDatePicker

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.