function focusOnTime(containerRef) {
	let target = containerRef.querySelector('button[aria-current="time"]');
	if (!target) {
		target = containerRef.querySelector('button[role="listitem"]');
	}
	target.focus();
}
/**
 * Focus management on time picker.
 * - try to focus on the selected item
 * - try to focus on the 1st item
 */
Focus management on time picker.
- try to focus on the selected item
- try to focus on the 1st item
Focus management on time picker . - try to focus on the selected item - try to focus on the 1st item
function focusOnTime(containerRef) {
	let target = containerRef.querySelector('button[aria-current="time"]');
	if (!target) {
		target = containerRef.querySelector('button[role="listitem"]');
	}
	target.focus();
}
function focusOnTime ( containerRef ) { let target = containerRef . querySelector ( 'button[aria-current="time"]' ) ; if ( ! target ) { target = containerRef . querySelector ( 'button[role="listitem"]' ) ; } target . focus ( ) ; }
Focus management on time picker.
Focus management on time picker .